Performance: Cache complete organizer index page, cache subevent list template fragment (#2125)

This commit is contained in:
Raphael Michel
2021-06-15 00:02:47 +02:00
parent 5801c8602e
commit 72388abd57
8 changed files with 152 additions and 31 deletions

View File

@@ -233,6 +233,11 @@ CACHES = {
REAL_CACHE_USED = False
SESSION_ENGINE = None
# pretix includes caching options for some special situations where full HTML responses are cached. This might be
# stressful for some cache setups so it is enabled by default and currently can't be enabled through pretix.cfg
CACHE_LARGE_VALUES_ALLOWED = False
CACHE_LARGE_VALUES_ALIAS = 'default'
HAS_MEMCACHED = config.has_option('memcached', 'location')
if HAS_MEMCACHED:
REAL_CACHE_USED = True