From 135ca9fc1c40bc87cd9fe4a8f21b926fd9d7968f 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} )")