From 77d3051ee44df36c37522af9f1c610a2d1fac163 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 1 May 2026 16:42:14 +0200 Subject: 🐛 search cache: fix search cache query save - delete all after any change (too complex to handle otherwise) (refs #6732) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models_common.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 4b0f1b160..573d4f8bf 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -5192,9 +5192,7 @@ class IdentifierItem(models.Model): # search cache clean SearchCache = apps.get_model("ishtar_common", "SearchCache") - SearchCache.objects.filter( - content_type=ContentType.objects.get_for_model(self.__class__) - ).delete() + SearchCache.objects.all().delete() def regenerate_all_ids(self, save=True): if getattr(self, "_prevent_loop", False): -- cgit v1.2.3