From d174b11c6a0554c198df3e442e6451ca00f2cf7b Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 28 Feb 2020 16:21:34 +0100 Subject: [PATCH] Reduce retention time of sass compiler cache --- src/pretix/presale/style.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/presale/style.py b/src/pretix/presale/style.py index abdd43067..3b256d1a9 100644 --- a/src/pretix/presale/style.py +++ b/src/pretix/presale/style.py @@ -91,7 +91,7 @@ def compile_scss(object, file="main.scss", fonts=True): ) cssf = CSSCompressorFilter(css) css = cssf.output() - cache.set('sass_compile_{}_{}'.format(cp, srcchecksum), css, 3600) + cache.set('sass_compile_{}_{}'.format(cp, srcchecksum), css, 600) checksum = hashlib.sha1(css.encode('utf-8')).hexdigest() return css, checksum