[Zope-CMF] Re: CachingPolicyManager improvements

Tres Seaver tseaver at palladion.com
Tue Sep 6 13:20:31 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Winkler wrote:
>>On 6 Sep 2005, at 15:24, Alexander Limi wrote:
>>
>>>On Tue, 06 Sep 2005 12:21:07 +0200, Florent Guillaume
>>><fg at nuxeo.com> wrote:
>>>
>>>>Alexander Limi wrote:
>>>>
>>>>> And the biggest etc: RAMCache does not know how to handle
>>>>>anything but  7-bit ASCII data.
>>>>>
>>>>
>>>>What? There's no such limitation. RAMCacheManager caches arbitrary
>>>>python objects in memory. Unless you're thinking of the fact that
>>>>it doesn't cache REQUEST headers, but that's not its goal.
>>>>
>>>
>>>Try caching a content object in UTF-8 with it, and you'll see what   I
>>>mean (yes, this is not what it's designed for, I know :).
> 
> 
> Ah, I think I see what you mean:
> In the suggested case, since the cached object returns only
> a fragment of XHTML, the encoding would be "out-of-band" data,
> which RAMCacheManager does not support. You're right, that can't work.

Heh, you just need to cache a tuple, (encoding, xhtml), instead. ;)
RAMCacheManager is for programmers ;)  It is a crucial design mistake in
the StandardCachceManagers product that the architecture treats
RAMCacheManager as a plug-compatible equivalent with page-level caches.


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDHc/f+gerLs4ltQ4RAqtYAJ9d6JDC0KbSvPXyKT0l01LbCFNr2ACeKiJl
9w1hsZpNM/wjAj2yQqf5dDk=
=A040
-----END PGP SIGNATURE-----



More information about the Zope-CMF mailing list