How about:

cache.ram.clear(regex=r'admin\.setting.*')

Anthony

On Monday, December 15, 2014 6:22:38 PM UTC-5, Alex wrote:
>
> I've got a function which returns a dict with some values. the function 
> has this decorator:
>
> @cache('admin.setting.limits', 3600, cache.ram)
>
> def get_limits():
> ..
>
>
> This works fine and the values are used from cache. When I change those 
> settings I want to clear the cache so I'm doing this:
>
> cache.ram.clear(regex='admin\.setting.*')
>
> When I call my function again the cached values are still used. Am I doing 
> something wrong here? Any ideas?
>
>
> regards,
>
> Alex
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to