That would make sense. But it's still the same result. I've changed my 
cache keys to avoid dots and only use underscore instead:

adminsetting_limits

and now I can delete the cached values without any problems:

cache.ram.clear(regex=r'adminsetting.*')


I still don't fully understand why the original regex doesn't work but at 
least it's not an issue anymore.
Am Dienstag, 16. Dezember 2014 02:51:07 UTC+1 schrieb Anthony:
>
> 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