Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

cachein django

from django.views.decorators.cache import cache_page

@cache_page(60 * 15)

def viewArticles(request, year, month):
   text = "Displaying articles of : %s/%s"%(year, month)
   return HttpResponse(text)
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #cachein #django
ADD COMMENT
Topic
Name
4+4 =