On Mar26, 2:56am, Mark Larsen <larsen...@gmail.com> wrote: > > Also is the cache object unique for each session? Does Web2py have any > concept of a shared cache for all sessons? >
I share what I just test, and what I do not know, and hope some expert can confirm them. Cache object seems unique for each session. I just open two different browser (Chrome and IE, and hence two sessions) to visit same cache sample (http://www.web2py.com/examples/cache_examples/cache_in_ram), and see cache effect can work on two sessions. But I am still not sure, is the cache object unique for each application, or are they share same namespace when in one web2py process? In other words, do I need to use cache in this way in my every application? cache.ram('%s:key'%request.application, lambda: foo(), time_expire=xxxx) By the way, if the cache object is unique for each application, what is the proper way to share info between application if needed? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---