Changes between Initial Version and Version 1 of Ticket #24035


Ignore:
Timestamp:
Dec 22, 2014, 11:05:49 AM (10 years ago)
Author:
Tim Graham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24035

    • Property Triage Stage UnreviewedAccepted
  • Ticket #24035 – Description

    initial v1  
    1 The interaction between CACHES[alias]['KEY_PREFIX'], CACHE_MIDDLEWARE_KEY_PREFIX and @cache_page(... key_prefix) is poorly documented. It should be made explicit that KEY_PREFIX is always used and combined with CACHE_MIDDLEWARE_KEY_PREFIX or @cache_page(... key_prefix)
     1The interaction between `CACHES[alias]['KEY_PREFIX']`, `CACHE_MIDDLEWARE_KEY_PREFIX` and `@cache_page(... key_prefix)` is poorly documented. It should be made explicit that `KEY_PREFIX` is always used and combined with `CACHE_MIDDLEWARE_KEY_PREFIX` or `@cache_page(... key_prefix)`
    22
    33Changes should be made to both ref/settings and topics/cache.
     
    77"The two settings can also be combined. If you specify a cache and a key_prefix, you will get all the settings of the requested cache alias, but with the key_prefix overridden.
    88
    9 Having looked through the source it appears as though the setting CACHE_MIDDLEWARE_KEY_PREFIX OR the argument to @cache_page is combined with the rest of the cache key using django.utils.cache.get_cache_key which is then combined with the CACHES[alias]['KEY_PREFIX'] using key_func.
     9Having looked through the source it appears as though the setting `CACHE_MIDDLEWARE_KEY_PREFIX` OR the argument to `@cache_page` is combined with the rest of the cache key using `django.utils.cache.get_cache_key` which is then combined with the `CACHES[alias]['KEY_PREFIX']` using `key_func`.
Back to Top