On Wednesday, December 21, 2016 at 8:13:02 PM UTC-5, Anthony wrote:
>
> *so my question is :*
>> 1 the cache automatically clear after the expire time met or not? if not, 
>> so we must cleared it manually by using cache.ram.clear() or 
>> cache.disk.clear(), so that the size of cache didn't grow isn't it?
>>
>
> Yes, you must clear any keys no longer in use. But if you have a finite 
> set of keys, it may be OK to just leave them in the cache (the same set of 
> keys will simply keep getting updated).
>

Though note that if you use the Redis cache, it will automatically clear 
cached items after their expiration (which is different behavior from all 
the other caching mechanisms).

Anthony

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to