From dcf6959cff74fee73db4d8b3daa93332851ddaf3 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 4 Mar 2019 18:24:02 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E6=AF=8F=E6=AC=A1=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E5=A4=B1=E6=95=88=E8=AE=BE=E7=BD=AE=E7=9A=84cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/settings/signals_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/settings/signals_handler.py b/apps/settings/signals_handler.py index c8fa92e27..7de4e150b 100644 --- a/apps/settings/signals_handler.py +++ b/apps/settings/signals_handler.py @@ -58,6 +58,7 @@ def monkey_patch_settings(sender, **kwargs): cache.delete(key) try: + cache.delete_pattern(cache_key_prefix+'*') LazySettings.__getattr__ = monkey_patch_getattr LazySettings.__setattr__ = monkey_patch_setattr LazySettings.__delattr__ = monkey_patch_delattr