Hi there!

The cache middleware didn't quite suit my needs, so I threw up a small
function to reset the cache key whenever the object is updated.

The functions look like this: http://dpaste.com/hold/13712/

Sample usage would be
>>> entry = cache_key(request, 'blog', Entry.objects.get(id=1))

The problem with this is that it hits the database, right? So the
whole purpose of the cache is gone.
How can I make this better?


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to