From: Lars G. <la...@wo...> - 2004-05-24 07:13:37
|
Hi Lane, With that caching provider, how would you cache a separate piece of content, which is part of the overall page. I assumed providers are for resources, like templates, which means the whole template is cached. Also, where is the distinction between caching the parsed content and caching the actual output. See, I do not want to cache the query results but use them to create the content and cache that instead. I trust you meant that somehow but I am not sure about it. Also, would you be able to tell me which classes are involved? Thanks, Lars Lane Sharman wrote: > Hi Lars, > > Caching has been discussed a lot and there is a caching provider > interface so you can write your own caching implementation. (As I have > done). > > To cache individual objects, you can use a global service model to cache > individual templates (eg, connection.wmt, statements.wmt, etc.) and > objects (queryResultReference, queryResultDomain, > queryResultTransaction, etc). With this kind of a model, you cache both > the template elements and the results according to memory and > invalidation events. > > I have done all of the above for http://www.opendoors.com > > Good luck. > > Kindest, > > lane > |