X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d9cece3698e91c621a933cf9bd93b8b4bd207dfe..0b270a76ad73162f894285c360a0ee87fa84e536:/src/catalogue/signals.py diff --git a/src/catalogue/signals.py b/src/catalogue/signals.py index 209ab41ac..7dd68d445 100644 --- a/src/catalogue/signals.py +++ b/src/catalogue/signals.py @@ -1,5 +1,5 @@ -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. # from django.conf import settings from django.core.cache import caches @@ -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()