RAMCacheForAnonymous
RAMCacheForAnonymous patch RAMCache for acting only on Anonymous User
connexions.
(i.e RAMCache works only when AUTHENTICATED_USER == This is done by decorating ZCache_get and ZCache_set methods of class RAMCache PREREQUISITESFor the following it is supposed you know how the RAMCache works. A good starting point is :
INSTALLPut RAMCacheForAnonymous in your Products directory. Then restart your Zope server. APIRAMCacheForAnonymous can be used for other Caches. You have to do: from Products.RAMCacheForAnonymous import patch_cache import Product.TheOtherCache patch_cache(Poduct.TheOtherCache) This code may live well in the initialize() method of your own Product. COMPATIBILITYTested with Zope-2.8.5 CAVEATSThe class is patched => there is no selection on which RAMCache may be patched and which not. This Products provides a Poor Man cache design. It is not intended to replace a full featured intelligent HTTPCache + squid architecture. But provides an easy and quick way of caching Zope side. You may additionnaly add to your RAM Cache the following REQUEST variables via ZMI :
BENEFITSThe RAM used is very low as this patch takes care of not storing data for any non Anonymous User. Installation is pretty simple. AUTHORAlexandre SAUVE - mr dot lex at free dot fr
|
|
Available Releases
Version | Maturity | Platform | Released |
---|---|---|---|
RAMCacheForAnonymous-1.0.0 | Stable | 2006-04-21 07:50:06 | |
RAMCacheForAnonymous-1.0.0.tar.gz (3 K) | All | md5 |