[Opensymphony-oscache] Clearing the cache in AbstractCacheAdministrator
dres <[email protected]> Mon, 06 Jun 2005 11:19:28 CDT
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <14909764.1118074798481.JavaMail.os-j2ee@opensymphony01.contegix.com> |
this issue is based in hibernate and true for all cache plugins for it. 2nd level caches, such as oscache, do not know about the relationships to other objects. as you may know, you have to set up collection caches separately from the individual object caches. and flush them separately too. bottom line, you have to take care to flush each object and collection that you want out of the cace. I got sick of doing it myself, so I ended up turning off caching on things I was flushing. and I only use it for read only or write through caches. things that get updated outside of hibernate I just leave uncached. --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=3027&messageID=8046#8046