>
> var_name = cache.ram('var_name',  lambda: do_something, time_expire=3600)
>
> You can then clear the cache like this :
>
> cache.ram.clear(var_name)
>

You can also do:

expire = 3600 if request.post_vars else 0
var_name = cache.ram('var_name', lambda: do_something, time_expire=expire)

So, when the form is created, time_expire will be 0, which forces the value 
to be refreshed.

Anthony

-- 



Reply via email to