Re: django and caching

2010-02-21 Thread Itay Donenhirsch
Thanks for the replies folks, you've been very helpful. One more question though - I didn't find any "official" way to clear the cache of a certain object. Any suggestions? On Sun, Feb 21, 2010 at 11:52 PM, Christophe Pettus wrote: > > On Feb 21, 2010, at 1:22 PM, Itay Donenhirsch wrote: > >> hi

Re: django and caching

2010-02-21 Thread Christophe Pettus
On Feb 21, 2010, at 1:22 PM, Itay Donenhirsch 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

Re: django and caching

2010-02-21 Thread cootetom
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 wrote: > hi folks, a little question: when using

Re: Django and caching when data is updated

2010-01-21 Thread Russell Keith-Magee
On Thu, Jan 21, 2010 at 6:00 PM, Malcolm Box wrote: > Hi, > > On Thu, Jan 21, 2010 at 7:35 AM, Russell Keith-Magee > wrote: >> >> On Thu, Jan 21, 2010 at 7:47 AM, Malcolm Box >> wrote: >> > >> > I've got a simple question that I can't find the answer to:  if the data >> > that a view depends on

Re: Django and caching when data is updated

2010-01-21 Thread Malcolm Box
Hi, On Thu, Jan 21, 2010 at 7:35 AM, Russell Keith-Magee wrote: > On Thu, Jan 21, 2010 at 7:47 AM, Malcolm Box > wrote: > > > > I've got a simple question that I can't find the answer to: if the data > > that a view depends on changes, does Django do anything smart to > invalidate > > the cach

Re: Django and caching when data is updated

2010-01-20 Thread Russell Keith-Magee
On Thu, Jan 21, 2010 at 7:47 AM, Malcolm Box wrote: > Hi, > > On the quest for performance I'm now having a look at Django's caching > framework. > > I've got a simple question that I can't find the answer to:  if the data > that a view depends on changes, does Django do anything smart to invalida

Re: Django and Caching Pages

2008-02-05 Thread boralyl
Jonathan, Thanks I'll check them out. On Feb 5, 12:12 pm, [EMAIL PROTECTED] wrote: > boralyl wrote: > > Jonathan, > > > Thanks for your response.  I first tested the site in firefox and > > konqueror and had no problems.  When using opera though I noticed it > > wasn't requesting the page, as yo

Re: Django and Caching Pages

2008-02-05 Thread jon
boralyl wrote: > Jonathan, > > Thanks for your response. I first tested the site in firefox and > konqueror and had no problems. When using opera though I noticed it > wasn't requesting the page, as you had mentioned. The browser cache > was set to check every 5 hours on document requests. I c

Re: Django and Caching Pages

2008-02-05 Thread boralyl
Jonathan, Thanks for your response. I first tested the site in firefox and konqueror and had no problems. When using opera though I noticed it wasn't requesting the page, as you had mentioned. The browser cache was set to check every 5 hours on document requests. I changed it to always and no

Re: Django and Caching Pages

2008-02-05 Thread Jonathan Ballet
boralyl wrote: > So when I initially visit the page, it doesn't allow me to rate the > product. So I login and it redirects me to the home page(/). The > home page prints out my user name, so I know I am logged in. However > if I visit that product page again it still won't let me rate the > pr