Django caching for web applications
Not quite what you are after, but johnny-cache will cache querysets, automatically invalidating on writes.
It may do enough of what you are after: and it is no work to use after setting up.
My question is about best practices for caching database updates in Django.
I'm writing a ticketing system.  I have a Ticket model and an Update model.  Each time a user adds an update to a ticket, an Update is created and linked as foreign key to the Ticket.
I have a TicketDetail view, that shows the Ticket description and the associated Updates.  Users can add an Update from this view.  I've enabled site-wide caching with memcached.
If a user adds an update and then reload this view, they won't see the update for a while.  I get why, because I need to enable per-view caching, and turn it off for this view.
But to enjoy the full speed of caching, what I'd really like to be able to do is enable caching for this view, but invalidate the cache as soon as a user makes an update.
Is there a straightforward way to do this?  Thanks much!