#1061 - findCount query is not cached in L2 query cache

This commit is contained in:
rob bygrave committed 2017-07-06 21:51:52 +12:00
1 parent 95aed6af54
commit 166bcd7c45
5 files changed
+38 -3

No files matched your search

@@ -70,7 +70,11 @@ public class DefaultOrmQueryEngine implements OrmQueryEngine {
public <T> int findCount(OrmQueryRequest<T> request) {
flushJdbcBatchOnQuery(request);
return queryEngine.findCount(request);
int result = queryEngine.findCount(request);
if (request.getQuery().isUseQueryCache()) {
request.putToQueryCache(result);
}
return result;
}
@Override