Pages tagged signals:

Drop-dead simple Django caching - Die in a Fire - Eric Florenzano’s Blog
http://www.eflorenzano.com/blog/post/drop-dead-simple-django-caching/

Caching is easy to screw up. Usually it's a manual process which is error-prone and tedious. It's actually quite easy to cache, but knowing when to invalidate which caches becomes a lot harder. There is a subset of caching the caching problem that, with Django, can be done quite easily. The underlying idea is that every Django model has a primary key, which makes for an excellent key to a cache. Using this basic idea, we can cover a fairly large use case for caching, automatically, in a much more deterministic way. Let's begin.
some sample caching code