> > For example when you do rows = db(query).select(cache=(cache.ram,3600),cacheable=True) > > Is there any way to specify the key, or to empty the cache after some time? > Not currently a way to specify the key, though I suppose we could add that option. Here's the code that generates the key: https://code.google.com/p/web2py/source/browse/gluon/dal.py#1705. I suppose you could replicate the key in order to clear the value from the cache if necessary. In general, you should probably limit yourself to caching only a fixed set of queries (that don't take up too much ram). You can also cache the Rows object itself (with your own key) if you do .select(..., cacheable=True), though in that case you lose some of the Rows functionality.
Anthony > What is the "correct" way to do? > > > Thank you > > -- --- 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.

