Author: ubernostrum
Date: 2011-09-10 22:58:34 -0700 (Sat, 10 Sep 2011)
New Revision: 16816
Modified:
django/branches/releases/1.3.X/docs/topics/cache.txt
Log:
[1.3.X] Fixed #16334: Make it quite clear that cache_page's 'cache' argument
refers to the name of a cache in the CACHES setting. Backport of [16815] from
trunk.
Modified: django/branches/releases/1.3.X/docs/topics/cache.txt
===================================================================
--- django/branches/releases/1.3.X/docs/topics/cache.txt 2011-09-11
05:57:38 UTC (rev 16815)
+++ django/branches/releases/1.3.X/docs/topics/cache.txt 2011-09-11
05:58:34 UTC (rev 16816)
@@ -526,9 +526,10 @@
requested, subsequent requests to that URL will use the cache.
``cache_page`` can also take an optional keyword argument, ``cache``,
-which directs the decorator to use a specific cache alias when caching view
-results. By default, the ``default`` alias will be used, but you can specify
-any cache alias you want::
+which directs the decorator to use a specific cache (from your
+:setting:`CACHES` setting) when caching view results. By default, the
+``default`` cache will be used, but you can specify any cache you
+want::
@cache_page(60 * 15, cache="special_cache")
def my_view(request):
--
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.