I'm going through the process of writing my first generator. I works
fine for what I need it to do, but I can't seem to get caching to work
with it. My generator extends from ComposerGenerator and implements
CacheableProcessingComponent.
I have implemented the following methods:
public java.io.Serializable generateKey()
public SourceValidity generateValidity()
My key is quite unique (and verbose). I am using TimeStampValidity from
Excalibur. I put in some debug statements and I can confirm that the
key and the timestamp are staying the same (and are not null/0) -- which
actually fits with the behavior.
The behavior is that the first (uncached) call works fine. All
subsequent calls give me an empty page...or rather it gives me
<html><body></body></html>
even though I am accessing a URL with only the generator and the XML
serializer in the pipeline. The caching engine can see that I want it
cached and that it is currently cacheable. There is of course more to
the component than this, but nothing that I know is related to caching.
All of my output is done through this.contentHandler.[SAX method] and
without caching, it works fine.
What am I missing?
- Miles
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>