On Tue, Sep 01, 2009 at 11:13:12AM -0700, Jerry Stratton wrote:
> As I'm working with caches, I've found myself wanting to know when the
> cache was created, to compare against the last time some data was
> updated.

Simply using cache.set('your_cache_key', (datetime.now(), your_value)) (or
time() instead of datetime.now()) should allow you to keep track of this in a
way which doesn't require modifying any core Django functionality :)

You might want to combine this with a custom version of the cache-middleware
and/or -decorator ;)

-- 
Thomas Adamcik

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to