Re: Forcing a view to expire from cache

2006-08-12 Thread Maciej Bliziński
On Sat, 2006-08-12 at 22:17 +, ToddG wrote: > What you probably want is the low-level cache API, and use it to store > the results of your long-running calculations. Since you're setting the > entry in the cache the key generation is up to you. So you wont' be > caching at the page or view

Re: Forcing a view to expire from cache

2006-08-12 Thread Maciej Bliziński
On Sat, 2006-08-12 at 21:17 +, ToddG wrote: > Maciej, you mentioned "turned on the caching" -- that sounds like using > the caching middleware, not the view-level cache functionality. Or am I > guessing wrong? You're guessing right. Sorry for not being specific enough. > To my understanding

Re: Forcing a view to expire from cache

2006-08-12 Thread ToddG
Maciej, you mentioned "turned on the caching" -- that sounds like using the caching middleware, not the view-level cache functionality. Or am I guessing wrong? To my understanding if you need to be able to manuallly get and clear cached pages you'll need to use the view level caching, not the

Re: Re: Forcing a view to expire from cache

2006-08-12 Thread James Bennett
On 8/12/06, Maciej Bliziñski <[EMAIL PROTECTED]> wrote: > It's fine, except the trailing MD5 sum. Is there a way to guess the key > of the view? Otherwise, I could use SQL to find everything that begins > with "views.decorators.cache.cache_page.myprefix./myproject/something/" > and nuke it, but

Re: Forcing a view to expire from cache

2006-08-12 Thread Maciej Bliziński
On Sat, 2006-08-12 at 13:13 -0700, Don Arbow wrote: > On Aug 12, 2006, at 12:38 PM, Maciej Bliziński wrote: > > > > This is a data-analysis site, and after I change some parameters, I > > want > > to clear the cache for one of the views. How can I force a view to > > expire? > > Take a look at

Re: Forcing a view to expire from cache

2006-08-12 Thread Don Arbow
On Aug 12, 2006, at 12:38 PM, Maciej Bliziński wrote: > > This is a data-analysis site, and after I change some parameters, I > want > to clear the cache for one of the views. How can I force a view to > expire? Take a look at the example just above the "Upstream Caches" paragraph. It shows

Forcing a view to expire from cache

2006-08-12 Thread Maciej Bliziński
Hello, Djangoers, I've got a site where some pages take really long to calculate and display (~40s), so I've turned on the caching and it works like a breeze. I'm amazed. This is a data-analysis site, and after I change some parameters, I want to clear the cache for one of the views. How can I