From 70fa4f294c86056ceff46a4b0474d2299721d823 Mon Sep 17 00:00:00 2001 From: Clemens Rudert Date: Wed, 11 Dec 2024 08:57:16 +0100 Subject: [PATCH] fix oereblex caching issue --- .../contrib/data_sources/oereblex/sources/plr_oereblex.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyramid_oereb/contrib/data_sources/oereblex/sources/plr_oereblex.py b/pyramid_oereb/contrib/data_sources/oereblex/sources/plr_oereblex.py index 61bbf7cf35..007e12ada8 100644 --- a/pyramid_oereb/contrib/data_sources/oereblex/sources/plr_oereblex.py +++ b/pyramid_oereb/contrib/data_sources/oereblex/sources/plr_oereblex.py @@ -131,3 +131,8 @@ def collect_related_geometries_by_real_estate(self, session, real_estate): selectinload(self.models.Geometry.public_law_restriction) .selectinload(self.models.PublicLawRestriction.responsible_office), ).all() + + def read(self, params, real_estate, bbox): + # resetting the local per request cache of queried oereblex links + self._queried_geolinks = {} + return super(DatabaseOEREBlexSource, self).read(params, real_estate, bbox)