You are correct you cannot but I think I may be able to fix this.
Please open an issue and I can modify the definition the cache object
and make it work

On Oct 13, 8:56 pm, pepper_bg <[email protected]> wrote:
> > from gluon import *
> > def myfunction():
> >     foo = current.foo
>
> Great, good to know... How do I apply this to current.cache though?
> Sounds to me this automatically means I can't use the @cache(...)
> decorator outside of a controller (Python just barfs at
> @current.cache(...)). I guess I could still use the version which
> takes a lambda but can you confirm I am not missing something?
>
> Thanks for your help...

Reply via email to