1from django.views.decorators.cache import never_cache
2
3@never_cache
4def myview(request):
5 # ...
6
1given a URL, try finding that page in the cache
2if the page is in the cache:
3 return the cached page
4else:
5 generate the page
6 save the generated page in the cache (for next time)
7 return the generated page
8