mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1217 - L2 query cache not caching empty result set
This commit is contained in:
1 parent
b9380aa5b8
commit
fd2d083971
2 files changed
+51
-10
No files matched your search
@@ -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