diff options
author | Dusty Phillips <buchuki@gmail.com> | 2008-10-11 19:52:51 -0400 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2008-10-11 19:52:51 -0400 |
commit | 5acf6c46f28446b91dbfd041960953f01f4ffe0d (patch) | |
tree | 8a8e63ba53231d3c41ac187446e9d740cd69b73a /main/utils.py | |
parent | 7dedeeafd5b2e34f05bd75e548ca56942919c668 (diff) |
separate copyrighted middleware from my additions
Diffstat (limited to 'main/utils.py')
-rw-r--r-- | main/utils.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/main/utils.py b/main/utils.py index 74ec50ef..c258c115 100644 --- a/main/utils.py +++ b/main/utils.py @@ -1,18 +1,2 @@ -from django.conf import settings -from django.core.cache import cache -from django.shortcuts import render_to_response -from django.template import RequestContext - -def prune_cache(django_page_url): - if not settings.CACHE: - return - cache_prefix = 'views.decorators.cache.cache_page.' - cache_prefix += settings.CACHE_MIDDLEWARE_KEY_PREFIX + '.' - cache_postfix = '.d41d8cd98f00b204e9800998ecf8427e' - cache.delete('%s%s%s' % (cache_prefix,django_page_url,cache_postfix)) - #utility to make a pair of django choices make_choice = lambda l: [(str(m), str(m)) for m in l] - -# vim: set ts=4 sw=4 et: - |