summaryrefslogtreecommitdiff
path: root/ishtar_common/models_common.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2026-05-01 16:42:14 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2026-05-01 17:43:19 +0200
commit77d3051ee44df36c37522af9f1c610a2d1fac163 (patch)
tree178913d0aba1a983e65d09f5f49b5b8ae7061a48 /ishtar_common/models_common.py
parentf50f22537d3588bd6dad72042775928eee6ba8dd (diff)
downloadIshtar-77d3051ee44df36c37522af9f1c610a2d1fac163.tar.bz2
Ishtar-77d3051ee44df36c37522af9f1c610a2d1fac163.zip
🐛 search cache: fix search cache query save - delete all after any change (too complex to handle otherwise) (refs #6732)
Diffstat (limited to 'ishtar_common/models_common.py')
-rw-r--r--ishtar_common/models_common.py4
1 files changed, 1 insertions, 3 deletions
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):