You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by rpalache <ra...@oracle.com> on 2009/03/30 19:42:19 UTC
Disabling QueryCaching at runtime does not work
An application has a configuration that allows query caching, but is making runtime calls to inform a fetch plan to disable query caching.
The bug is that this dynamic no-caching request is being ignored by the query cache executor, which then caches the query regardless.
Tried to disable query cache using
OpenJPAEntityManager.getFetchPlan().setQueryResultCache(false);
and also
query.getFetchPlan().setQueryResultCacheEnabled(false);
None of the above worked.
Please donwload the test case from:
openJPATestcase.zip
To replicate the problem:
1) Modify build.xml to reflect your environment. ( e.g: patch where the libraries for openJPA exist )
2) "ant"
3) "ant test"
I tried it on openjpa 2.0.0
Regards,
Ravi.
--
View this message in context: http://n2.nabble.com/Disabling-QueryCaching-at-runtime-does-not-work-tp2558659p2558659.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.