#5284: never_cache decorator is not documented
-------------------------------------------------+--------------------------
Reporter: Ville Säävuori <[EMAIL PROTECTED]> | Owner:
jacob
Status: new | Component:
Documentation
Version: SVN | Resolution:
Keywords: cache, never_cache | Stage:
Accepted
Has_patch: 0 | Needs_docs: 1
Needs_tests: 0 | Needs_better_patch: 0
-------------------------------------------------+--------------------------
Comment (by Ville Säävuori <[EMAIL PROTECTED]>):
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".
--
Ticket URL: <http://code.djangoproject.com/ticket/5284#comment:2>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---