thanks anthony, for detail explaination. 1. in controllers usually contain more than 1 function so i think it'll be efficient to put it on top of the controllers like i usually do with auth.requires_login(), i've tested both no errors occured : e.g. #cache.action(time_expire = 300, cache_model = cache.ram, quick = 'SVLUP')(lambda: None)() cache.action(time_expire = 300, cache_model = cache.ram, quick = 'SVLUP')
my question is it recommended to put the cache on top of the controllers that affect to all the function in that controller? 2. "in beside on top of the controller" is put the cache on top of the controllers so that it can affect to all function in that controllers, the correlation for the DAL cache is should i pick one or both (DAL cache and cache.action) ? what i've tested so far: step : - use DAL (select(), iterselect(), count() and IS_IN_DB() ) query without cache and compare it using cache, it make page load faster, but the strange things is, it didn't appear in web2py appadmin ccache (http://127.0.0.1:8000/test/appadmin/ccache), so i'm not sure is it cache or not, but i feel the page load faster. my feeling tell that apps cached, but my mind doubt it, since it's not appear in appadmin ccache - add cache or cache.action on top of the controllers, it appears on web2py appadmin ccache, so not sure it affect a lot since i've already put DAL cache on the first step 3. in the book it said : For example, when you show a form to the user, or a list of records, the web page should not be cached, as other users may have inserted new records on the table you are showing. ref: http://web2py.com/books/default/chapter/29/04/the-core?search=cache#cache-action let say, i have a web app that contain 3 parts : - master (e.g. product, customer) - transaction (e.g. sale order) - report (e.g. sale order) so base on the book said, the webapps better not use cache because all of the parts (master, transaction, report) is using form (form to input, or edit master. form to input transaction. form to generate report and show the table query result). the problem is when not using cache, the apps respond is slow (function to calculate and table record callback), any idea the best way how to implement it using web2py way? 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

