I have a large query that is ran and takes about 50 seconds to
completely and is pretty resource intensive. So what I have done is
cached it into a key via cache.set('my_query_results', results, 300)

The problem is that I also use pagination which results from this
query. So when navigating to ?page=2~ it should in theory just re-use
the cache and output page 2's data. But it doesn't. What it does is re-
run and re-cache the entire query again. I'm guessing that this is due
to the 'request' (MyView(request) is changing (?page=2).

Is it possible to override this? Or am I just doing something this
whole thing wrong?

Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to