Splitting files into subdirectories in preparation for merge

This commit is contained in:
Calen Pennington
2012-03-19 11:10:44 -04:00
parent 8949c5e6bf
commit 1bc3835fe6
132 changed files with 0 additions and 0 deletions

16
lib/util/cache.py Normal file
View File

@@ -0,0 +1,16 @@
"""
This module aims to give a little more fine-tuned control of caching and cache
invalidation. Import these instead of django.core.cache.
Note that 'default' is being preserved for user session caching, which we're
not migrating so as not to inconvenience users by logging them all out.
"""
from django.core import cache
# If we can't find a 'general' CACHE defined in settings.py, we simply fall back
# to returning the default cache. This will happen with dev machines.
try:
cache = cache.get_cache('general')
except ValueError:
cache = cache.cache