[Opensymphony-oscache] HTTP Request/Response Caching using Filtering
Russ Ray <[email protected]> Mon, 06 Jun 2005 06:15:07 CDT
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <33347470.1118056557457.JavaMail.os-j2ee@opensymphony01.contegix.com> |
I have taken OScache and used it in an application in all three ways--filtering, tag library, and API calls. I have the cache going to file system on the server. Everything seems to be working. I started looking around on how each portion of the tool was working. When I looked at the cache on the file system, I noticed we are caching the response page. This did not alarm me to much at first; however, under closer observation, I discovered we are caching the same page over and over again even when the request is the same on every attempt. This is only happening using the filtering portion of the tool. The way I have the filter setup is shown below: <filter-mapping> <filter-name>CacheFilter</filter-name> <url-pattern>/application/task.do?method=searchView</url-pattern> </filter-mapping> When I look at the file name for each cached object, I notice the tool is creating the file name to resemble a portion of the http request. This is the same for the response. Obviously, I do not have the filtering configuration setup properly or fully understand how keying works when OSCache creates it own key. I would expect the tool to cache the request and the response only once. Thank you for taking the time to read my post. Any incite to the tool would be greatly appreciated as I am very new. Russ --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=3032&messageID=8030#8030