Code

Ticket #16725: 16725.diff

File 16725.diff, 447 bytes (added by BernhardEssl, 3 years ago)
Line 
1Index: docs/topics/cache.txt
2===================================================================
3--- docs/topics/cache.txt       (revision 16710)
4+++ docs/topics/cache.txt       (working copy)
5@@ -571,7 +571,7 @@
6     from django.views.decorators.cache import cache_page
7 
8     urlpatterns = ('',
9-        (r'^foo/(\d{1,2})/$', cache_page(60 * 15)(my_view)),
10+        (r'^foo/(\d{1,2})/$', cache_page((60 * 15), my_view)),
11     )
12 
13 Template fragment caching