#1217 - L2 query cache not caching empty result set

This commit is contained in:
Rob Bygrave
2017-11-22 22:03:35 +13:00
parent b9380aa5b8
commit fd2d083971
2 changed files with 51 additions and 10 deletions
@@ -162,7 +162,7 @@ public class DefaultOrmQueryEngine implements OrmQueryEngine {
request.mergeCacheHits(result);
if (!result.isEmpty() && query.getUseQueryCache().isPut()) {
if (query.getUseQueryCache().isPut()) {
// load the query result into the query cache
result.setReadOnly(true);
request.putToQueryCache(result);