Re: Caching of Silva Documents

eric casteleijn <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
Samuel Schluep wrote:
> eric casteleijn wrote:
>> Samuel Schluep wrote:
>>> Hi
>>>
>>> It seems to me that the caching of published Silva Documents does not 
>>> work anymore in the Silva 1.6 trunk version somewhere around r23374. 
>>> Documents are always fully rendered. Can anybody reproduce this 
>>> behavior? Or did I miss some settings?
>> Hi Samuel,
>>
>> Are you experiencing this with xslt rendering on, off, or both?
> 
> I am experiencing this with xslt rendering off. In
> Silva/VersionedContent.py (lines 268 - 272, Silva-1.6b4-all.tgz) I added
> some test print statements :
> 
>         data = self._get_cached_data(cache_key)
>         if data is not None:
>             print 'cached'
>             return data
>         print 'not cached'
> 
> Viewing published documents always prints 'not cached'.

I cannot reproduce this: when I do a hard reload (ctrl-shift-R) the 
cached data is found (and printed with above debug prints), at least for 
cacheable data, so not for instance for documents with (uncacheable) 
code sources in them.

-- 
- eric casteleijn
http://infrae.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.