Skip to content

Commit

Permalink
Make empty cache detection a bit more aggressive to account for cache…
Browse files Browse the repository at this point in the history
… flush and data insert happening concurrently
  • Loading branch information
sulkaharo committed Sep 28, 2020
1 parent a8b53f5 commit 48f5578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function cache (env, ctx) {
}

data.isEmpty = (datatype) => {
return data[datatype].length == 0;
return data[datatype].length < 20;
}

data.getData = (datatype) => {
Expand Down

0 comments on commit 48f5578

Please sign in to comment.