Skip to content

Commit 48f5578

Browse files
committed
Make empty cache detection a bit more aggressive to account for cache flush and data insert happening concurrently
1 parent a8b53f5 commit 48f5578

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/server/cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function cache (env, ctx) {
5353
}
5454

5555
data.isEmpty = (datatype) => {
56-
return data[datatype].length == 0;
56+
return data[datatype].length < 20;
5757
}
5858

5959
data.getData = (datatype) => {

0 commit comments

Comments
 (0)