Re: Maintain data over request/response in memory

2007-06-20 Thread meledictas
Malcolm I see this is a bug in old django version. Now I patched my django and ploblem was solved. Thank Chatchai On Jun 21, 6:52 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Wed, 2007-06-20 at 02:37 -0700, [EMAIL PROTECTED] wrote: > > I try to use local memory cache to cache coun

Re: Maintain data over request/response in memory

2007-06-20 Thread Malcolm Tredinnick
On Wed, 2007-06-20 at 02:37 -0700, [EMAIL PROTECTED] wrote: > I try to use local memory cache to cache counter variable. When I try > to get my variable from cache, I got What version of Django are you using? If you're using a subversion checkout, what changeset number (check this via "svn info")

Re: Maintain data over request/response in memory

2007-06-20 Thread meledictas
I try to use local memory cache to cache counter variable. When I try to get my variable from cache, I got Traceback (most recent call last): File "C:\Python24\Lib\site-packages\django\core\servers \basehttp.py", line 272, in run self.result = application(self.environ, self.start_response

Re: Maintain data over request/response in memory

2007-06-20 Thread James Bennett
On 6/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Well, I 'm implementing a performance counter. This counter will be > updated everytime someone view our web page. > So, I don't want to rely on another external system such as database. > I just want to provide counter to some external mo

Re: Maintain data over request/response in memory

2007-06-20 Thread meledictas
Well, I 'm implementing a performance counter. This counter will be updated everytime someone view our web page. So, I don't want to rely on another external system such as database. I just want to provide counter to some external monitoring programs. I On Jun 20, 2:36 pm, "James Bennett" <[EMAI

Re: Maintain data over request/response in memory

2007-06-20 Thread James Bennett
On 6/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > One way I can think is, create a service to allow any views to > update data and provide a call for reader. Generally we call that a "database" or a "cache" ;) Any reason why you can't store this data using either Django's databa