On Nov 25, 2007, at 3:07 PM, Alberto Valverde wrote:
"Cache decorator utilizing Beaker. Caches action or other function thatreturns a pickle-able object as a result."This lead me to believe that I could happily use this decorator to cacheDB 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 controllermethod 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.
Cheers, Ben
smime.p7s
Description: S/MIME cryptographic signature
