Opened 13 years ago
Closed 13 years ago
#16725 closed Cleanup/optimization (worksforme)
Error in example code from per-view cache docs
Reported by: | Bernhard Essl | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
https://docs.djangoproject.com/en/dev/topics/cache/#specifying-per-view-cache-in-the-urlconf
The second URL pattern is wrong.
(r'^foo/(\d{1,2})/$', cache_page(60 * 15)(my_view)),
Attachments (1)
Change History (2)
by , 13 years ago
Attachment: | 16725.diff added |
---|
comment:1 by , 13 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The doc looks good to me as-is (see: source:django/trunk/django/views/decorators/cache.py?rev=16338#L25 and source:django/trunk/tests/regressiontests/decorators/tests.py?rev=16338#L122).