I have this

@cache_page(MANY_HOURS)
def foo(request):
     calculate_something_complex()
     ...

@login_required
def bar(request):
    change_complex_data()
    #here I want to invalid foo()'s cache
    ...

But other actions elsewhere will need to invalidate the cache for
this. I could do a '/etc/init.d/memcached restart' but that not very
practical; especially since it's not automated.
Granted, the HTTP Expires settings have been sent to obeying browsers
won't reload unless each client explicitly press the Reload button.

Is there a way to, using signals, invalidate a cache_page cache?
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to