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
multiple processes.

I was hoping for maybe a mechanism within web2py itself, that could
load it with framework and then be available to my controllers.



On Sun, Jan 31, 2010 at 6:56 PM, Thadeus Burgess <[email protected]> wrote:
> Use cache.disk and cache your object instance.
>
> -Thadeus
>
>
>
>
>
> On Sun, Jan 31, 2010 at 5:04 PM, Mark Larsen <[email protected]> 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 thing possible?
>>
>> If it matters, I develop using the built-in server and use
>> apache2/mod_wsgi in production.
>>
>> Thanks,
>> Mark
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/web2py?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to