[Opensymphony-oscache] cron expression - not working properly
Edward <[email protected]> Wed, 15 Jun 2005 06:42:45 CDT
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <11693338.1118835972005.JavaMail.os-j2ee@opensymphony01.contegix.com> |
I have a jsp that caches content according to the following cron expression: <cache:cache cron="45 06 * * monday" scope="application" refresh="<%=refresh%>"> (where refresh is normally false, unless the cache is being cleared - when it will be true) This works up to a point. If I login to my application, and load the page for the 1st time, the content that is supposed to be cached is cached. If I visit other other parts of the application and return to this cached page, the content is still cached (by the app not the browser). If I allow my session to expire - for example, I leave myself logged in overnight then try and visit parts of the application from the same browser window the following morning, I'm re-directed to a login page (session timeout parameter). The problem: Logging back in, I find that the cached content is not used. The application re-creates and re-caches it. In the logs I see the following: 11:20:27,125 DEBUG [AbstractConcurrentReadCache] - get called (key=/reporting/visits/page.jsp_GET_1) 11:20:27,126 INFO [CacheTag] - <cache>: Cached content not used: New cache entry, cache stale or scope flushed : /reporting/visits/page.jsp_GET_1 Anyone have any idea what's wrong? Thanks, Edward --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=3313&messageID=8590#8590