mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1217 - L2 query cache not caching empty result set
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user