mirror of
https://github.com/pretix/pretix.git
synced 2026-08-10 10:47:00 +00:00
Don't cache files globally
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user