Commit dcf6959c authored by ibuler's avatar ibuler

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

parent 924affd9
...@@ -58,6 +58,7 @@ def monkey_patch_settings(sender, **kwargs): ...@@ -58,6 +58,7 @@ def monkey_patch_settings(sender, **kwargs):
cache.delete(key) cache.delete(key)
try: try:
cache.delete_pattern(cache_key_prefix+'*')
LazySettings.__getattr__ = monkey_patch_getattr LazySettings.__getattr__ = monkey_patch_getattr
LazySettings.__setattr__ = monkey_patch_setattr LazySettings.__setattr__ = monkey_patch_setattr
LazySettings.__delattr__ = monkey_patch_delattr LazySettings.__delattr__ = monkey_patch_delattr
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment