1 2 3 4 5 6 7 8 9 10 11 | from django.views.decorators.cache import cache_control from someproj.someapp.views import foo_view # ... open_cache = cache_control(private=True, public=True) urlpatterns = patterns('', (r'^foo/$', open_cache(foo_view)), # ... ) |
Comments