[Erp5-dev] caching per object

Bartek Gorny bartek at redpoint.mn.pl
Thu Sep 14 21:04:29 CEST 2006


Hello

I tried to use caching methods, but it seems that a simple statement like:

  def getWhatever(self):
    def cached_getWhatever():
      return something
   cached_getWhatever=CachingMethod(cached_getWhatever, id='an_id')
   return cached_getWhatever()

does caching per portal type, which is very useful, but I need to do
caching per object - is there any way to do this?

Bartek

-- 
"Software is largely a service industry operating under the persistent
but unfounded delusion that it is a manufacturing industry."
Eric S.Raymond, "The Magic Cauldron"



More information about the Erp5-dev mailing list