浏览代码

[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):
import webnotes.webutils
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.destroy()



正在加载...
取消
保存