cms updates
This commit is contained in:
parent
e0f2df9506
commit
81dba76699
@ -4,4 +4,8 @@ def execute():
|
||||
from webnotes.model.code import get_obj
|
||||
|
||||
# rewrite pages
|
||||
get_obj('Website Settings').rewrite_pages()
|
||||
get_obj('Website Settings').rewrite_pages()
|
||||
|
||||
ss = get_obj('Style Settings')
|
||||
ss.validate()
|
||||
ss.on_update()
|
@ -26,11 +26,14 @@ class DocType:
|
||||
"""
|
||||
self.set_home_page()
|
||||
self.validate_domain_list()
|
||||
|
||||
|
||||
def on_update(self):
|
||||
self.rewrite_pages()
|
||||
|
||||
from webnotes.session_cache import clear_cache
|
||||
clear_cache('Guest')
|
||||
|
||||
|
||||
def rewrite_pages(self):
|
||||
"""rewrite all web pages"""
|
||||
import webnotes
|
||||
|
Loading…
Reference in New Issue
Block a user