Commits

Andriy Kornatskyy  committed 85c7009

Added none_cache_profile as common use case.

  • Participants
  • Parent commits 02008cd

Comments (0)

Files changed (2)

File doc/userguide.rst

 
     from wheezy.caching.patterns import Cached
     from wheezy.http import CacheProfile
+    from wheezy.http import none_cache_profile
     from wheezy.http import response_cache
     from myapp import cache
 
     cached = Cached(cache, time=15)
     cache_profile = CacheProfile('server', duration=15)
-    none_cache_profile = CacheProfile('none', no_store=True)
 
     @response_cache(cache_profile)
     def list_of_goods(request):

File src/wheezy/http/__init__.py

 from wheezy.http.response import see_other
 from wheezy.http.response import temporary_redirect
 from wheezy.http.response import unauthorized
+
+
+none_cache_profile = CacheProfile('none', no_store=True)