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
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:
>
>
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
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
4 matches
Mail list logo