diff --git a/patches/december_2012/clear_web_cache.py b/patches/december_2012/clear_web_cache.py new file mode 100644 index 00000000000..da714928149 --- /dev/null +++ b/patches/december_2012/clear_web_cache.py @@ -0,0 +1,8 @@ +import webnotes +def execute(): + # build wn-web.js and wn-web.css + from website.helpers.make_web_include_files import make + make() + + import website.utils + website.utils.clear_cache() \ No newline at end of file diff --git a/patches/patch_list.py b/patches/patch_list.py index 2e8fc5e4fed..90f908e3cad 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -741,4 +741,8 @@ patch_list = [ 'patch_module': 'patches.december_2012', 'patch_file': 'replace_createlocal', }, + { + 'patch_module': 'patches.december_2012', + 'patch_file': 'clear_web_cache', + }, ] \ No newline at end of file