fix
authorRadek Czajka <rczajka@rczajka.pl>
Thu, 3 Aug 2023 15:40:11 +0000 (17:40 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Thu, 3 Aug 2023 15:40:11 +0000 (17:40 +0200)
src/catalogue/signals.py

index 209ab41..9b8fb55 100644 (file)
@@ -75,4 +75,5 @@ def receive_tags_updated(sender, instance, affected_tags, **kwargs):
         return
 
     caches[settings.CACHE_MIDDLEWARE_ALIAS].clear()
         return
 
     caches[settings.CACHE_MIDDLEWARE_ALIAS].clear()
-    instance.clear_cache()
+    if sender in (Book, Picture):
+        instance.clear_cache()