On 19 August 2011 23:32, galgal <weglarek.rob...@gmail.com> 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 malcolm....@gmail.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.