Document: Working with Documents URL: https://lenya.zones.apache.org/cms/docu/authoring/docu20/concepts/documents.html Changed by user: Thorsten Scherler (thorsten)
---- Added: /document/body/section[4]/section[2] <section> (http://apache.org/forrest/document/v20) ---- Added: /document/body/section[4]/section[2]/title <title> (http://apache.org/forrest/document/v20) ---- Added: /document/body/section[4]/section[2]/title/text() How can I control the caching of the this call, since I can use a cached version of the listing until one of the documents get edit? ---- Added: /document/body/section[4]/section[2]/p[1] <p> (http://apache.org/forrest/document/v20) ---- Added: /document/body/section[4]/section[2]/p[1]/text() The Lucene query should be pretty fast, so caching the resulting list might not be necessary. ---- Added: /document/body/section[4]/section[2]/p[2] <p> (http://apache.org/forrest/document/v20) ---- Added: /document/body/section[4]/section[2]/p[2]/text() If you don't want to use Lucene, you could write a custom generator that stores an index of the relevant meta data and uses the last modification date for the cache validity. The generator also has to check the sitetree to see if documents have been added or removed. This is a rather complex task, but we used it for a customer in Lenya 1.2 and up to now it works very well (in combination with mod_cache, though). ---- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
