Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django cache framework

given a URL, try finding that page in the cache
if the page is in the cache:
    return the cached page
else:
    generate the page
    save the generated page in the cache (for next time)
    return the generated page
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #django #cache #framework
ADD COMMENT
Topic
Name
4+5 =