[Opensymphony-oscache] Clearing OSCache

madhusv <[email protected]> Thu, 14 Apr 2005 15:54:08 CDT
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <14506194.1113512145650.JavaMail.os-j2ee@opensymphony01.contegix.com>
I am trying to clear elements from OSCache by deleting the cache file created on the disk. (Disabled Memory Cache). However after deleting, when I access the same element again, OSCache does not recreate the element in Cache. 
Example - OSCache created the following files in the cache directory. 
_test_00140518000.cache
_test_00140543000.cache
_test_00140676000.cache
_test_00145507000.cache
_test_00145510000.cache
_test_00145511000.cache
_test_00145513000.cache
_test_00145514000.cache

I delete files 
_test_00140518000.cache
_test_00140543000.cache
_test_00140676000.cache
_test_00145507000.cache

using a shell script. 
I retrieve the products test_00140518000.cache, test_00140543000.cache, test_00140676000.cache, test_00145507000.cache again from a different session, still OSCache does not create the cache files again. 

Is my approach of deleting files behind the scenes the right approach of flusing the cache. I can always use OSCache API.  
Can someone please advise

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=1581&messageID=4857#4857