Hi, The user gets A. Django's caching doesn't know that the database data changed. You could override the save method on the model so that when data is saved you clear the cache, or update the cache maybe.
On Feb 21, 9:22 pm, Itay Donenhirsch <i...@bazoo.org> wrote: > hi folks, a little question: when using any caching mechanism (say, > memcache) with django, how does django know when to "refresh" the > cache? > > a scenario for example: > 1. user gets a page, gets page content A > 2. someone changes the state of the database so A -> A' > 3. user refreshes the same page, does he get A or A'? > > how does django know to handle this? > > thanks, > itay -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.