瀏覽代碼

[minor] [fix] rebuild sitemap in clear_web

version-14
Anand Doshi 11 年之前
父節點
當前提交
ec88c79086
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      wnf.py

+ 2
- 0
wnf.py 查看文件

@@ -424,6 +424,8 @@ def clear_cache(site=None):
def clear_web(site=None): def clear_web(site=None):
import webnotes.webutils import webnotes.webutils
webnotes.connect(site=site) webnotes.connect(site=site)
from website.doctype.website_sitemap_config.website_sitemap_config import build_website_sitemap_config
build_website_sitemap_config()
webnotes.webutils.clear_cache() webnotes.webutils.clear_cache()
webnotes.destroy() webnotes.destroy()




Loading…
取消
儲存