learned about cache from the book, but got confused : 1. when tried to put cache affected for all functions in controller, the cache.action have a strange behaviour the controllers requires user to login, but it can by passed (not required user logged in), already test the simplest one just put 1 word in the quick parameter, and clean app (from http://127.0.0.1:8000/admin/default/site) and clear cache (http://127.0.0.1:8000/test/appadmin/ccache), but still got the same result *e.g.* *controllers/default.py* # -*- coding: utf-8 -*-
auth.requires_login()(lambda: None)() # Session, Vars, Lang, User_agent, Public #cache.action(time_expire = 300, cache_model = cache.ram, quick = 'SVLUP')(lambda: None)() #cache.action(time_expire = 300, cache_model = cache.ram, quick = 'S')(lambda: None)() #cache.action(time_expire = 300, cache_model = cache.ram, quick = 'V')(lambda: None)() #cache.action(time_expire = 300, cache_model = cache.ram, quick = 'L')(lambda: None)() #cache.action(time_expire = 300, cache_model = cache.ram, quick = 'U')(lambda: None)() #cache.action(time_expire = 300, cache_model = cache.ram, quick = 'P')(lambda: None)() cache(request.env.path_info, time_expire = 300, cache_model = cache.ram)(lambda: None)() 2. when using the cache.action why the key is encrypted, while test using just cache on top of the controllers it shown the function name? 3. is it neccessary to put the cache in beside on top of the controller, like in dal (select, iterselect, count, is_in_db) ? *e.g.* db(db.test.id > 0).select(cache = (cache.ram, 3600), cacheable = True) db(db.test.id > 0).iterselect(cache = (cache.ram, 3600), cacheable = True) db(db.test.id > 0).count(cache = (cache.ram, 3600) ) IS_IN_DB(db, db.test.id, db.test._format, cache = (cache.ram, 3600) ) any idea what's going on happen with cache in web2py? thanks and best regards, stifan -- 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.