From da3a42fc5116adc468d20e2015feb614d46fc142 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 21 Feb 2013 14:42:34 +0530 Subject: [PATCH] added web clear patch --- patches/february_2013/p07_clear_web_cache.py | 6 ++++++ patches/patch_list.py | 1 + 2 files changed, 7 insertions(+) create mode 100644 patches/february_2013/p07_clear_web_cache.py diff --git a/patches/february_2013/p07_clear_web_cache.py b/patches/february_2013/p07_clear_web_cache.py new file mode 100644 index 00000000000..5aca2d6ee6a --- /dev/null +++ b/patches/february_2013/p07_clear_web_cache.py @@ -0,0 +1,6 @@ +import webnotes + +def execute(): + from website.utils import clear_cache + clear_cache() + \ No newline at end of file diff --git a/patches/patch_list.py b/patches/patch_list.py index 4cdebc2c885..45df4c18be0 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -186,4 +186,5 @@ patch_list = [ "execute:webnotes.delete_doc('DocType', 'Service Order Detail')", "execute:webnotes.delete_doc('DocType', 'Service Quotation Detail')", "patches.february_2013.p06_material_request_mappers", + "patches.february_2013.p07_clear_web_cache" ] \ No newline at end of file