[Zope] Cache manager in zope 2.3.0b1
Bak @ kedai
kedai@kedai.com.my
Wed, 24 Jan 2001 21:40:21 +0800
-----Original Message-----
From: Shane Hathaway <shane@digicool.com>
To: Bak@kedai <kedai@kedai.com.my>
Date: Wednesday, January 24, 2001 9:10 PM
Subject: Re: [Zope] Cache manager in zope 2.3.0b1
>"Bak@kedai" wrote:
>>
>> >From HelpSys for RAM CAche
>> """
>> Finally, you can configure the list of REQUEST variables
>> that will be used in the cache key. This can be a simple
>> and effective way to distinguish requests from
>> authenticated versus anonymous users or those with
>> session cookies.
>> """
>> so, if i access a particular DTML Method as such
>> http://myserver.com/mymethod?objId=xxx
>> can i use objId to distinguish between different objects?
>> i tried by setting objId as the cache key in my RAM Cache object.
however,
>> nothing were cached. even after accessing mymethod with different objId.
>
>I'd like to help you out with this--could you give more details? What
>did you do to test the caching? Are you sure it wasn't being cached?
>
>Shane
>
sorry. my mistake. i think more info on how/what should/can be a cache key
is good. currently, there's two cache key fields, one in the object
itself, one in the cache manager instance. the field in object can contain
more than one cache keys, while the cache key in the cache manager instacne
can contain only one.
now that i can cache object, i can't invalidate it automatically ( the cache
don't expire).
how do i expire the cached object automatically?
sorry for being a pain :)
if i understand it more, i'll try and write up a howto/note