cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <>
Subject RE: Switching cache to Persistent Store
Date Mon, 11 Aug 2003 10:06:35 GMT
Upayavira wrote:
> I've been exploring how to get the CLI to use Cocoon's caching 
> mechanism and  
> environment.isLastModified() to prevent the CLI from generating 
> otherwise cached  
> pages. 
> The problem I currently have is that the cache Cocoon uses is 
> transient, and is  
> thus lost every time the CLI restarts.  
> So: 
> a) How can I switch Cocoon to always use a Persistent cache? Putting  
> <cache><parameter name="store"  
> value=""/></cache> into 
> cocoon.xconf makes  
> CacheImpl pick a persistent store, but for some reason values 
> aren't in the store  
> after Cocoon has been restarted. 
What do you mean by "after Cocoon has been restarted"? I'm not sure
but it could be possible that the store is cleaned on startup.

> b) How can I get Cocoon to use a persisitent store for CLI and a 
> transient one for  
> servlet? 
By using different configurations, ok dumb answer I know, but the
easiest (?) solution is to change the above mentioned store parameter
to the required values.


View raw message