On 19 August 2011 23:32, galgal <[email protected]> wrote:

> I want to use per-view 
> cache<https://docs.djangoproject.com/en/1.3/topics/cache/#the-per-view-cache>.
> I know how it's working, but where's the problem? How can I invalidate that
> cache? I must do it each time database records are changed. There is no info
> about how to do that:/


You'll need to use the low-level cache API to invalidate the individual
cache entries. Hook up a post_save handler to your model, figure out the
key(s) for the views affected and use cache.delete() to remove the entry.

Malcolm


-- 
Malcolm Box
[email protected]

-- 
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