Thank you for your hint. I just tried out XPathDirectoryGenerator (scratchpad)
which essentially does what I need, but is a lot less messy than my initial
approach. However, also these results seem not to get cached... Presumably I
should save the result with something like a SourceWritingTransformer, and
only rebuild the file after explizit request.


Martin

Nick Airey <[EMAIL PROTECTED]> writes:

> After 1 minute of looking, it seems that the DirectoryGenerator is not
> cacheable. 
> 
> So it is going to re-read the directory every time you hit the pipeline.
> Your Xincluded pieces might be cacheable, however. For instance, the
> FileGenerator *is* cacheable (if you are using it).
> 
> 
> If you can live with refreshing the cached directory every x seconds (or
> miliseconds), and you can write some java, you could extend the
> DirectoryGenerator to make a "caching directory generator", by
> implementing interface Cacheable and implementing generateKey() and
> generateValidity().  The generateValidity() method would return a
> DeltaTimeCacheValidity instance set to the caching time. 
> 
> 
> Regs,
> Nick.

-- 
Martin Lüthi                 [EMAIL PROTECTED]



---------------------------------------------------------------------
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]>

Reply via email to