Opened 17 years ago
Closed 17 years ago
#5284 closed (fixed)
never_cache decorator is not documented
Reported by: | Owned by: | Fernando Gutierrez | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | cache, never_cache, sprintsept14 | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
While searching docs for how to disable caching, I found that never_cache
decorator in django.views.decorators.cache
is not documented. It is, however, documented in changeset #2602.
Attachments (2)
Change History (10)
comment:1 by , 17 years ago
Needs documentation: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 17 years ago
I was trying to say that the decoratos _has already been documented_ in changeset 2602 (the link above goes to bug 2602, not changeset) but for some reason it's not there anymore.
A quick copypaste and reformatting resulted in:
If you want to use headers to disable caching altogether, ``django.views.decorators.never_cache`` is a view decorator that adds headers to ensure the response won't be cached by browsers or other caches. Example:: from django.views.decorators.cache import never_cache @never_cache def myview(request): ...
Above should go under the heading "Controlling cache: Using other headers".
comment:3 by , 17 years ago
Has patch: | set |
---|---|
Needs documentation: | unset |
Owner: | changed from | to
Status: | new → assigned |
comment:4 by , 17 years ago
Keywords: | sprintsept14 added |
---|
comment:5 by , 17 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:6 by , 17 years ago
I think the included hasn't got proper line length. It shoud be easy to correct after applying the patch, though.
comment:8 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Want to write it up?