[web2py] Re: cache.action decorator generates an error

2015-10-17 Thread Krzysztof Socha
Just a little add-on: it seems now to work fine, if *time_expire>0*. It only fails for *time_expire=0*. So I guess it is an improvement :) When will this be fixed in a stable release? Or should I use the github version for my production server? Cheers, Krzysztof. On Saturday, October 17, 2015

[web2py] Re: cache.action decorator generates an error

2015-10-17 Thread Krzysztof Socha
I cloned repo from github, and now I get: type 'exceptions.UnboundLocalError'> local variable 'expires' referenced before assignment I guess something was fixed, but something else got broken? More details: File "/opt/web2py/gluon/cache.py", line 680, in wrapped_f 'Expires' : expires, Unbou

[web2py] Re: cache.action decorator generates an error

2015-10-16 Thread Massimo Di Pierro
This may be fixed in trunk. Can you please check it. On Wednesday, 14 October 2015 13:03:01 UTC-5, Krzysztof Socha wrote: > > Hi, > > I am trying to configure caching on my site, but it does not seem to work. > As soon as I use the cache.action decorator, such as: > > @cache.action(time_expire=0,