Hi Axel,

On Mon, 2006-05-15 at 13:09 +0200, Axel Steiner wrote:
> Hi all,
> 
> I've set up the cache system of Django and it works fine, except one thing.
> Is it possible to reload or clean the cache, when there is a new record 
> in the database?

Yes. Have a look at this post from Adrian:
http://groups.google.com/group/django-users/browse_frm/thread/500d8cebe1f0c4e1/751e204668a0fdca?q=caching+questions&rnum=1#751e204668a0fdca

He describes how URLs are stored in the cache and how to invalidate
them. The original poster in that thread was wanting to do exactly the
same thing as you. In fact, you might want to have a look at some of
Fredrik Lundh's work from around that time (search for Django references
on this page: http://online.effbot.org/2006_03_01_archive.htm ) and the
code he wrote to see how he does this (not sure if the caching stuff is
in the code he has, but I suspect it will be).

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to