cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upayavira" ...@upaya.co.uk>
Subject Switching cache to Persistent Store
Date Sun, 10 Aug 2003 16:41:50 GMT
<?xml  version="1.0" ?><html>
<head>
<title></title>
</head>
<body>
<div align="left"><font face="Arial"><span style="font-size:10pt">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.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">The problem
I currently have is that the cache Cocoon uses is transient, and is 
thus lost every time the CLI restarts. </span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">So:</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">a) How
can I switch Cocoon to always use a Persistent cache? Putting 
&lt;cache&gt;&lt;parameter name=&quot;store&quot; 
value=&quot;org.apache.excalibur.store.Store&quot;/&gt;&lt;/cache&gt;
into cocoon.xconf makes 
CacheImpl pick a persistent store, but for some reason values aren't in the store 
after Cocoon has been restarted.</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">b) How
can I get Cocoon to use a persisitent store for CLI and a transient one for 
servlet?</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">To show
the sort of impovements possible, here's two pages, each generated 
twice, the second time cached. For those interested in improving the performance 
of the CLI, check out the benefits :-)</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Courier New" color="#0000ff"><span style="font-size:10pt">*
docs/index.html [4.447 seconds]</span></font></div>
<div align="left"><font face="Courier New" color="#0000ff"><span style="font-size:10pt">*
docs/index.html [0.3 seconds]</span></font></div>
<div align="left"><font face="Courier New" color="#0000ff"><span style="font-size:10pt">*
samples/hello-world/hello.html [0.381 seconds]</span></font></div>
<div align="left"><font face="Courier New" color="#0000ff"><span style="font-size:10pt">*
samples/hello-world/hello.html [0.04 seconds]</span></font></div>
<div align="left"><font face="Courier New" color="#0000ff"><span style="font-size:10pt">Total
time: 0 minutes 14 seconds</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Courier New"><span style="font-size:10pt">Regards,</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Courier New"><span style="font-size:10pt">Upayavira</span></font></div>
</body>
</html>

Mime
View raw message