This is a rough version of our cache invalidator, including a sample
decorator and a cached template tag:

http://dpaste.com/14107/

If you have multiple web servers talking to one cache (which is our
case) you can use some message passing system (like activeMQ) to
propagate the signals to other web servers

On 7/11/07, Nebojša Đorđević <[EMAIL PROTECTED]> wrote:
>
> On 09.07.2007., at 01:11, David Cramer wrote:
>
> > Here's about as final as we're going to get it for now: http://
> > dpaste.com/hold/13884/
>
> Great work :)
>
> About cache invalidation ... why you can use something like this
> http://dpaste.com/hold/14104/
>
> and just add:
>
> class Foo(models.Model):
>         objects = CacheManager()
> track_cache(Foo)
>
> Full code is at http://dpaste.com/hold/14105/
>
> --
> Nebojša Đorđević - nesh, ICQ#43799892, http://www.linkedin.com/in/
> neshdj
> Studio Quattro - Niš - Serbia
> http://studioquattro.biz/ | http://code.google.com/p/django-utils/
> Registered Linux User 282159 [http://counter.li.org]
>
>
>
> >
>


-- 
Honza Král
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

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

Reply via email to