From 16b0ad437d9af8548a5f63649b92428e24178a72 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 23 Jan 2023 11:29:08 -0300 Subject: [PATCH] Fix #576: invalidation cache lors des modifs assoc UE/refcomp --- app/models/ues.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/ues.py b/app/models/ues.py index 387fc8d2..94954b93 100644 --- a/app/models/ues.py +++ b/app/models/ues.py @@ -219,6 +219,8 @@ class UniteEns(db.Model): db.session.add(self) db.session.commit() + # Invalidation du cache + self.formation.invalidate_cached_sems() log(f"ue.set_niveau_competence( {self}, {niveau} )") def set_parcour(self, parcour: ApcParcours): @@ -246,6 +248,8 @@ class UniteEns(db.Model): self.niveau_competence = None db.session.add(self) db.session.commit() + # Invalidation du cache + self.formation.invalidate_cached_sems() log(f"ue.set_parcour( {self}, {parcour} )")