diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt
index 839e03d..d084feb 100644
a
|
b
|
time, rather than :setting:`CACHE_MIDDLEWARE_SECONDS`. Using the decorators in
|
477 | 477 | the ``never_cache`` decorator). See the `using other headers`__ section for |
478 | 478 | more on these decorators. |
479 | 479 | |
| 480 | .. _middleware_cache_key: |
| 481 | |
| 482 | The key used by the middleware to store and retrieve pages is based on the |
| 483 | request path as well as all the header values provided by ``request.META``. |
| 484 | The actual key format looks like this:: |
| 485 | |
| 486 | views.decorators.cache.cache_page.<key-prefix>.<http-method>.<MD5(path)>.<MD5(headers)> |
| 487 | |
| 488 | .. note:: |
| 489 | |
| 490 | The format of the cache key and its generation is part of Django's private |
| 491 | API and is therefor not guaranteed to be stable between releases. |
| 492 | |
480 | 493 | .. _i18n-cache-key: |
481 | 494 | |
482 | 495 | .. versionadded:: 1.2 |
… |
… |
The two settings can also be combined. If you specify a ``cache`` *and*
|
547 | 560 | a ``key_prefix``, you will get all the settings of the requested cache |
548 | 561 | alias, but with the key_prefix overridden. |
549 | 562 | |
| 563 | The key used by this function is generated using the same logic as the one |
| 564 | used by the :ref:`CacheMiddleware <middleware_cache_key>`. |
| 565 | |
550 | 566 | Specifying per-view cache in the URLconf |
551 | 567 | ---------------------------------------- |
552 | 568 | |
… |
… |
template tag to uniquely identify the cache fragment:
|
611 | 627 | It's perfectly fine to specify more than one argument to identify the fragment. |
612 | 628 | Simply pass as many arguments to ``{% cache %}`` as you need. |
613 | 629 | |
| 630 | The key generated based on the fragment name and the additional arguments has |
| 631 | following format:: |
| 632 | |
| 633 | template.cache.<fragment-name>.<MD5(arguments)> |
| 634 | |
| 635 | The arguments are resolved within the current context, URL-quoted and joined |
| 636 | with a colon. The resulting string is then MD5-hashed and appended to the |
| 637 | key. So, for instance, in the example above if the current user's |
| 638 | username were "username", the generated cache key would look like this:: |
| 639 | |
| 640 | template.cache.sidebar.14c4b06b824ec593239362517f538b29 |
| 641 | |
614 | 642 | If :setting:`USE_I18N` is set to ``True`` the per-site middleware cache will |
615 | 643 | :ref:`respect the active language<i18n-cache-key>`. For the ``cache`` template |
616 | 644 | tag you could use one of the |