Browse Source

[minor] [fix] rebuild sitemap in clear_web

version-14
Anand Doshi 11 years ago
parent
commit
ec88c79086
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      wnf.py

+ 2
- 0
wnf.py View File

@@ -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()



Loading…
Cancel
Save