Hallöchen! I'd like to clean up the cache when an updated model instance is saved to the database backend.
Let's assume that I have a model "Person", and the user can view the person's information on a webpage. However, much data must be collected for this webpage, so it's a costly operation and should be cached. No problem, because I can generate a cache key containing the person's primary key, the timestamp, and the user's settings (e.g. language) and save the collected data into the cache. Now some of this collected data changes. How can I delete all cache keys that have become invalid by this? I could store all keys in a CharField in the Person model and use signals. Is there a better approach? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bronger-jmp.appspot.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-us...@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.