From 5d32b9f706217cbc9d4d00dab6923d4784caeac2 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 3 Sep 2021 17:07:37 +0200 Subject: [PATCH] fix regression in cache invalidation --- app/scodoc/sco_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scodoc/sco_cache.py b/app/scodoc/sco_cache.py index b3a80f62..f92ba7bc 100644 --- a/app/scodoc/sco_cache.py +++ b/app/scodoc/sco_cache.py @@ -251,7 +251,7 @@ def invalidate_formsemestre( # was inval_cache(formsemestre_id=None, pdfonly=Fa """ from app.scodoc import sco_parcours_dut - if g.defer_cache_invalidation: + if getattr(g, "defer_cache_invalidation", False): g.sem_to_invalidate.add(formsemestre_id) return log("inval_cache, formsemestre_id=%s pdfonly=%s" % (formsemestre_id, pdfonly))