Make empty cache detection a bit more aggressive to account for cache flush and data insert happening concurrently

This commit is contained in:
Sulka Haro
2020-09-28 11:12:42 +03:00
parent a8b53f54e5
commit 48f5578e8a
+1 -1
View File
@@ -53,7 +53,7 @@ function cache (env, ctx) {
}
data.isEmpty = (datatype) => {
return data[datatype].length == 0;
return data[datatype].length < 20;
}
data.getData = (datatype) => {