Menu

CacheableAction always regenerated

Help
Martin
2004-02-07
2004-03-10
  • Martin

    Martin - 2004-02-07

    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

     
    • Felix Gnass

      Felix Gnass - 2004-03-10

      Has been fixed in actioncache 1.1.2.

       

Log in to post a comment.

MongoDB Logo MongoDB