From 4851f5671e02644d350fefa111039483e61417db Mon Sep 17 00:00:00 2001 From: "Adam J. Forster" Date: Tue, 18 Mar 2014 16:33:00 +0000 Subject: [PATCH] Document settings.COMPRESS_CACHE_KEY_FUNCTION --- docs/settings.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/settings.txt b/docs/settings.txt index 1b510bc..d7f3495 100644 --- a/docs/settings.txt +++ b/docs/settings.txt @@ -418,6 +418,14 @@ Caching settings and the ``django.core.context_processors.request`` context processor. .. _RequestContext: http://docs.djangoproject.com/en/dev/ref/templates/api/#django.template.RequestContext + +.. attribute:: COMPRESS_CACHE_KEY_FUNCTION + + :Default: ``'compressor.cache.simple_cachekey'`` + + The function to use when generating the cache key. The function must take + one argument which is the partial key based on the source's hex digest. + It must return the full key as a string. Offline settings ----------------