On 10 Aug 2003 at 22:26, Geoff Howard wrote: > rufio wrote: > > Hi all > > Is there a way to enfoce an asumption that volatile data (eg. stored > > in DB) changes once a specific interval? > > > > Now if we have 100 requests/s SQLTransformer querys DB 100 times/s, > > right? I'd like to set it up to query only once a, say minute and > > cache the result. > > > > To my knowledge there is no way to do this with the current > SQLTransformer. You could extend the SQLTransformer to add caching > support which would be quite trivial to do if you are really content > to use such a simple algorithm as cache always for one minute.
In Cocoon 2.1 isn't there something to do with 'expiry' in the cache? I remember some discussion about making it possible to set a pipeline to 'expire' after x seconds, regardless of its content. Wouldn't this sort this problem? Hope that helps, if a bit vague. Regards, Upayavira > Geoff > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
