Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.3.X] Fixed #16334: Make it quite clear that cache_page's 'cache' a…

…rgument refers to the name of a cache in the CACHES setting. Backport of [16815] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16816 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2c8e45e1f4a85691cb6349b37d4340ab8e33b023 1 parent 4601509
James Bennett authored September 11, 2011

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  docs/topics/cache.txt
7  docs/topics/cache.txt
@@ -526,9 +526,10 @@ you may expect. But once a particular URL (e.g., ``/foo/23/``) has been
526 526
 requested, subsequent requests to that URL will use the cache.
527 527
 
528 528
 ``cache_page`` can also take an optional keyword argument, ``cache``,
529  
-which directs the decorator to use a specific cache alias when caching view
530  
-results. By default, the ``default`` alias will be used, but you can specify
531  
-any cache alias you want::
  529
+which directs the decorator to use a specific cache (from your
  530
+:setting:`CACHES` setting) when caching view results. By default, the
  531
+``default`` cache will be used, but you can specify any cache you
  532
+want::
532 533
 
533 534
     @cache_page(60 * 15, cache="special_cache")
534 535
     def my_view(request):

0 notes on commit 2c8e45e

Please sign in to comment.
Something went wrong with that request. Please try again.