Created
July 21, 2011 19:46
-
-
Save qoelet/1098029 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.core.cache import cache | |
# simple cache fetch: | |
vkey = "%s_%s_%s" % (site, slug, get_param) | |
vcache = cache.get(vkey) | |
if vcache: | |
return vcache # cached response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment