brotherton-erpnext/patches/december_2012/clear_web_cache.py

13 lines
393 B
Python
Raw Normal View History

2012-12-17 10:44:08 +00:00
import webnotes
def execute():
webnotes.reload_doc("website", "doctype", "web_page")
webnotes.reload_doc("website", "doctype", "blog")
webnotes.reload_doc("stock", "doctype", "item")
2013-01-22 07:18:22 +00:00
webnotes.reload_doc("setup", "doctype", "item_group")
2012-12-17 10:44:08 +00:00
# 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()