From 05e9d09e1fb09323637a799f9c0f4b969e3d0455 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 7 Mar 2019 18:14:43 +0100 Subject: [PATCH] Don't cache files globally --- src/pretix/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pretix/settings.py b/src/pretix/settings.py index 5ffe7fe266..788b1ad76f 100644 --- a/src/pretix/settings.py +++ b/src/pretix/settings.py @@ -179,6 +179,10 @@ METRICS_PASSPHRASE = config.get('metrics', 'passphrase', fallback="") CACHES = { 'default': { 'BACKEND': 'pretix.helpers.cache.CustomDummyCache', + }, + 'file': { + 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', + 'LOCATION': '/tmp/django_cache', } } REAL_CACHE_USED = False @@ -489,6 +493,8 @@ COMPRESS_PRECOMPILERS = ( COMPRESS_ENABLED = COMPRESS_OFFLINE = not debug_fallback +COMPRESS_CACHE_BACKEND = 'file' + COMPRESS_CSS_FILTERS = ( # CssAbsoluteFilter is incredibly slow, especially when dealing with our _flags.scss # However, we don't need it if we consequently use the static() function in Sass