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

pull/2461/head
ibuler 6 years ago
parent 924affd978
commit dcf6959cff

@ -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