1
0
forked from ScoDoc/ScoDoc

fix regression in cache invalidation

This commit is contained in:
Emmanuel Viennet 2021-09-03 17:07:37 +02:00
parent 84e991cef0
commit 5d32b9f706

View File

@ -251,7 +251,7 @@ def invalidate_formsemestre( # was inval_cache(formsemestre_id=None, pdfonly=Fa
""" """
from app.scodoc import sco_parcours_dut 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) g.sem_to_invalidate.add(formsemestre_id)
return return
log("inval_cache, formsemestre_id=%s pdfonly=%s" % (formsemestre_id, pdfonly)) log("inval_cache, formsemestre_id=%s pdfonly=%s" % (formsemestre_id, pdfonly))