Some of the information here may be outdated, please check the book instead

Be forewarned that cache.ram will not work as expected with apache/mod_wsgi when using multiple apache processes, as in (from apache config)-->

WSGIDaemonProcess web2py user=www group=www home=/home/www processes=10

The object will only be cached into the process processing that request. With each request cycle you may get any of the 10 processes, not necessarily the one with your cached object. As an alternative I recommend disk caching ( or perhaps using memcache (

cache.ram is ok when running one process and multiple threads.

© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by web2py - design derived from a theme by the earlybird
The content of this book is released under the Artistic License 2.0 - Modified content cannot be reproduced.