cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Romanov <...@nizhny.ru>
Subject Re[2]: Cache problem
Date Fri, 19 May 2000 16:15:28 GMT
Dear Robin!

Nothing helps!!! Please, somebody from Cocoon authors, help me!

One more time:
I have foo.java
I compile it to foo.class
I use <xsp:include>foo</xsp:include>
When I change foo.java and recompile it
Cocoon do not recompile the XSP file 8(
Nothing helps - I've done all the stuff You told me.

RG> Do both step 1 and step 2, to disable both types of caching:

RG> STEP 1) Change these lines in cocoon.properties:
RG> # the default cache
RG> cache = org.apache.cocoon.cache.CocoonCache
RG> # disable page caching
RG> #cache = org.apache.cocoon.cache.NoCache

RG> to this:
RG> # the default cache
RG> #cache = org.apache.cocoon.cache.CocoonCache
RG> # disable page caching
RG> cache = org.apache.cocoon.cache.NoCache

RG> Make sure you change the copy of cocoon.properties which is actually being 
RG> read by Cocoon!

RG> STEP 2) Choose either (a) or (b):

RG> (a) touch yourpage.xml (using the touch command on Unix or 
echo.>>>yourpage.xml on Windows) every time you want it to be recompiled.

RG> or (b) Make it automatically recompile by patching the Cocoon source code 
RG> like so:

RG> In the file src/org/apache/cocoon/processor/xsp/XSPProcessor.java
RG> change
RG>     // [Re]create page if necessary
RG>     if (pageEntry.hasChanged()) {
RG> to this
RG>     // [Re]create page if necessary
RG>     if (true) { // CHANGED: always recompile

RG> and rebuild Cocoon using build.sh or build.bat.

RG> and then restart Cocoon.

RG> To Ricardo - I suggest this could be a switchable option in Cocoon 2.



Mime
View raw message