> Secondly, cache.action can't be used to cache views with database selects. >> However, if the database select was converted to a list/dict, with >> as_list() or as_dict(), would caching the page with cache.action be >> possible (this would make it pickleable as a regular dictionary)? >> > > Why ? cache.action just caches the rendered view. It doesn't matter how > many select()s you do in that controller. >
cache.action caches only the output of the decorated function, so it would only cache the rendered view if the function manually renders the view itself by calling response.render(), no? 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

