Browse Source

[Update] 每次启动失效设置的cache

pull/2461/head
ibuler 6 years ago
parent
commit
dcf6959cff
  1. 1
      apps/settings/signals_handler.py

1
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

Loading…
Cancel
Save