Re: [web2py] Global Variable Available Across Sessions

2010-01-31 Thread Mark Larsen
Thanks for the reply. I feel like I've asked this question before and gotten that reply. It seems like a waste to have to read the largish object off disk with request cycle (especially with a good user load). I've used cache.ram in the past but I remember a gotcha when using it with apache and

Re: [web2py] Global Variable Available Across Sessions

2010-01-31 Thread Thadeus Burgess
Use cache.disk and cache your object instance. -Thadeus On Sun, Jan 31, 2010 at 5:04 PM, Mark Larsen wrote: > I'd like to use a global variable (an instance of an object) that is > initiated at server start up and that is a available to all > threads/processes of the application.  Is such a

[web2py] Global Variable Available Across Sessions

2010-01-31 Thread Mark Larsen
I'd like to use a global variable (an instance of an object) that is initiated at server start up and that is a available to all threads/processes of the application. Is such a thing possible? If it matters, I develop using the built-in server and use apache2/mod_wsgi in production. Thanks, Mark