I want to take the shortest route to getting cached output in my struts based project, so I have make my Action implement CacheableAction.
The code still runs, and serves the page okay, but the content is still be generated each time, not served from the cache.
I have looked at ActionCacheRequestProcessor.processActionPerform, and this is what I see:
The items are being put in the cache, and found next time they are needed (AbstractCache.getItem is calling touch(item)), but back in ActionCacheRequestProcessor.processActionPerform, cacheItem.isNew() is true, because lastModified is NOT_YET.
I cannot see where ActionCacheItem.setLastModified is called.
Hope someone reads this message as the forum seems very quiet!
Thanks
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using actioncache v 1.1.1
I want to take the shortest route to getting cached output in my struts based project, so I have make my Action implement CacheableAction.
The code still runs, and serves the page okay, but the content is still be generated each time, not served from the cache.
I have looked at ActionCacheRequestProcessor.processActionPerform, and this is what I see:
The items are being put in the cache, and found next time they are needed (AbstractCache.getItem is calling touch(item)), but back in ActionCacheRequestProcessor.processActionPerform, cacheItem.isNew() is true, because lastModified is NOT_YET.
I cannot see where ActionCacheItem.setLastModified is called.
Hope someone reads this message as the forum seems very quiet!
Thanks
Martin
Has been fixed in actioncache 1.1.2.