Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions docs/ref/settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,13 @@ backend class (i.e. ``mypackage.backends.whatever.WhateverCache``).
~~~~~~~~~~~~~~~~

A string containing a dotted path to a function (or any callable) that defines
how to compose a prefix, version and key into a final cache key. The default
implementation is equivalent to the function::

def make_key(key, key_prefix, version):
return ":".join([key_prefix, str(version), key])
how to compose a key, prefix, and version into a final cache key. The default
function converts the components to strings and joins them with colons, as
shown in the :ref:`cache documentation <cache_key_transformation>`.

You may use any key function you want, as long as it has the same
argument signature.

See the :ref:`cache documentation <cache_key_transformation>` for more
information.

.. setting:: CACHES-KEY_PREFIX

``KEY_PREFIX``
Expand Down