Tuesday, August 10, 2010

Re: Problem with cache.

So,

I'm using a filesystem caching and I'm using cache.get and cache.set
to set and get the cache.

But sometimes django shows a different value of the stored value in
the database.

Ex: the system show a variable in a template: 487.000 entries. And
sometimes, due cache problems, when I update the navigator page, the
variable shows 287.000 entries. If I erase the cache and reload the
page, the value is corrected to 487.000 again.

And there is no mechanism to change the field whose the variable is
associated in the database. I mean: there is nothing changing the
field in the database.

Thanks.

On 10 ago, 14:00, Aljoša Mohorović <aljosa.mohoro...@gmail.com> wrote:
> On Tue, Aug 10, 2010 at 6:55 PM, Felipe <felipecat...@gmail.com> wrote:
> > So, when I erase the cache, the value is corrected, and the variable
> > turns showing the real value which is stored in the database.
>
> what do you mean when you say cache? browser cache, memcached or something else?
>
> > Could this to be a problem with the memcached ?
>
> are you using memcached? if you're using memcached
> (http://docs.djangoproject.com/en/1.2/topics/cache/#topics-cache) are
> you using low-level API or per-site/per-view cache API?
>
> Aljosa Mohorovic

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate