Ticket #16725: 16725.diff

File 16725.diff, 447 bytes (added by Bernhard Essl, 13 years ago)
  • docs/topics/cache.txt

     
    571571    from django.views.decorators.cache import cache_page
    572572
    573573    urlpatterns = ('',
    574         (r'^foo/(\d{1,2})/$', cache_page(60 * 15)(my_view)),
     574        (r'^foo/(\d{1,2})/$', cache_page((60 * 15), my_view)),
    575575    )
    576576
    577577Template fragment caching
Back to Top