[Opensymphony-oscache] Pages only caching some of the time
raigunn <[email protected]> Thu, 02 Jun 2005 10:12:10 CDT
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <2000133.1117725224822.JavaMail.os-j2ee@opensymphony01.contegix.com> |
I am trying to cache an entire jsp page which contains a form (using GET method) that submits results back to the same page. When I submit the form with the same criteria, it should always show the cached version. However, about half the time it creates a new cache file in my specified cache directory (and I notice it takes significantly longer for the page to load than when it uses the cache version). Since I'm submitting the form with all the same params, shouldn't it just create the cache the first time and then always show the cached version after that? Below are my specs... Here is my properties file: cache.persistence.class=com.opensymphony.oscache.plugins.diskpersistence.DiskPersistenceListener cache.path=F:\\Program Files\\Apache Software Foundation\\Tomcat 5.5\\webapps\\packard\\cache cache.capacity=1000 cache.blocking=true And these are the tags in my jsp file: <%@ taglib uri="oscache" prefix="cache" %> <cache:cache time="-1"> ... content ... </cache:cache> --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=2883&messageID=7829#7829