fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d9cece3
)
fix
author
Radek Czajka
<rczajka@rczajka.pl>
Thu, 3 Aug 2023 15:40:11 +0000
(17:40 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Thu, 3 Aug 2023 15:40:11 +0000
(17:40 +0200)
src/catalogue/signals.py
patch
|
blob
|
history
diff --git
a/src/catalogue/signals.py
b/src/catalogue/signals.py
index
209ab41
..
9b8fb55
100644
(file)
--- a/
src/catalogue/signals.py
+++ b/
src/catalogue/signals.py
@@
-75,4
+75,5
@@
def receive_tags_updated(sender, instance, affected_tags, **kwargs):
return
caches[settings.CACHE_MIDDLEWARE_ALIAS].clear()
- instance.clear_cache()
+ if sender in (Book, Picture):
+ instance.clear_cache()