On 9/20/07, Jens Diemer <[EMAIL PROTECTED]> wrote:
>
>
> I can delete one entry in the cache. But how can i clean the cache completely?
>

Hi, Jens.

Assuming your cache backend is memcached:

from django.core.cache import cache
cache._cache.flush_all()

I don't use the other cache backends enough to know about this method for them.

Cheers,
deryck


-- 
Deryck Hodge
Lead Developer, Product Development
Washington Post.Newsweek Interactive
Samba Team
http://www.devurandom.org/

--~--~---------~--~----~------------~-------~--~----~
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