Ben Bangert wrote:
> On Nov 25, 2007, at 3:07 PM, Alberto Valverde wrote:
> 
>> "Cache decorator utilizing Beaker. Caches action or other function that
>> returns a pickle-able object as a result."
>>
>> This lead me to believe that I could happily use this decorator to cache
>> DB querying functions and the like (the "or other function" part).
>>
>> However, beaker_cache will happily smash any cookies, headers and status
>> of the current response with the ones present the first time the cached
>> function was called! This makes perfect sense when caching a controller
>> method BUT NOT any "other function".
> 
> Yup, agreed. I've added a new keyword option, 'response' to the latest
> one. You must now explicitly say you'd like to cache the Response object
> for beaker_cache to do so. This is in pylons-dev trunk.

That was quick... Thanks Ben! :)

Alberto

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to