Skip to content

Commit

Permalink
fix oereblex caching issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vvmruder committed Dec 11, 2024
1 parent 64288b1 commit 70fa4f2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 70fa4f2

Please sign in to comment.