Don't cache files globally

This commit is contained in:
Raphael Michel
2019-03-07 18:14:43 +01:00
parent 93947cace0
commit 05e9d09e1f
+6
View File
@@ -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