Thanks! I somehow was under the impression that the old way of using cache 
is somehow deprecated. I re-read the book again, and there is just a 
statement "We recommend @cache.action 
<http://web2py.com/books/default/chapter/29/04/the-core?search=cache#markmin_cache_action>
 starting 
from web2py > 2.4.6". But since this is not possible with cache.action, I 
will try using the cache.ram.

Cheers,
Krzysztof.

On Monday, February 29, 2016 at 1:36:45 AM UTC+1, Anthony wrote:
>
> Looking at the code, it does not appear it is possible to turn off client 
> side caching when using @cache.action. However, if you don't want 
> client-side caching, you might as well just use @cache.ram.
>
> Anthony
>
> On Sunday, February 28, 2016 at 3:39:08 PM UTC-5, Krzysztof Socha wrote:
>>
>> I have a page that is sometimes (not very often) updated. The default 
>> view is quite complex, so caching it in RAM significantly improves 
>> performance. However, if I try to cache it in RAM using something like:
>>
>> @cache.action(time_expire=3600, cache_model=cache.ram, prefix='index')
>>
>> the browser serves the locally cached version even if the content changes 
>> and I clear the cache by:
>>
>> cache.ram.clear('index*')
>>
>> Is there a way to disable browser cache, but keep server cache? The book 
>> says that cache.action: "will do one or another or *both*"  So how do I 
>> just do the server-side caching without client-side?
>>
>> This is probably something obvious, but I cannot figure it out for a 
>> while now... any hints greatly appreciated.
>>
>> Cheers,
>> Krzysztof.
>>
>

-- 
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