Re: middleware cache problem

2009-07-22 Thread Alex Robbins
It sounds like the problem is that you are caching the whole page using the site wide cache. Maybe things would work better if you used the low level cache api.[1] from django.core.cache import cache MY_STORY_CACHE_KEY = "story_list" def story_list(request): story_list = cache.get(MY_STORY_CAC

Re: middleware cache problem

2009-07-21 Thread Norman
per-view cache is not a solution because I need only a method to retrieve fresh (not cached) data from middleware. I wanna take cached list of stories and not cached vote results for it. regards, Norman On Jul 21, 3:13 pm, Michael wrote: > On Tue, Jul 21, 2009 at 9:02 AM, Norman wrote: > >

Re: middleware cache problem

2009-07-21 Thread Michael
On Tue, Jul 21, 2009 at 9:02 AM, Norman wrote: > > Hi all, > > I cache my view that show a list of stories, but I have also small > voting button (like digg). Voting is done be middleware class (it > reads user IP), so I can ask for view with list of stories and tell > that this list shall be cac

middleware cache problem

2009-07-21 Thread Norman
Hi all, I cache my view that show a list of stories, but I have also small voting button (like digg). Voting is done be middleware class (it reads user IP), so I can ask for view with list of stories and tell that this list shall be cached and I have to ask middleware for vote results. Unfortuna