Merge branch 'master' into dev
This commit is contained in:
commit
1d2826d69d
@ -223,7 +223,7 @@ def refresh_cache(build=None):
|
|||||||
"""delete and re-create web cache entries"""
|
"""delete and re-create web cache entries"""
|
||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
webnotes.conn.sql("delete from `tabWeb Cache`")
|
# webnotes.conn.sql("delete from `tabWeb Cache`")
|
||||||
|
|
||||||
query_map = {
|
query_map = {
|
||||||
'Web Page': """select page_name, name from `tabWeb Page` where docstatus=0""",
|
'Web Page': """select page_name, name from `tabWeb Page` where docstatus=0""",
|
||||||
@ -244,4 +244,4 @@ def refresh_cache(build=None):
|
|||||||
for page_name in get_predefined_pages():
|
for page_name in get_predefined_pages():
|
||||||
create_cache(page_name, None, None)
|
create_cache(page_name, None, None)
|
||||||
clear_cache(page_name, None, None)
|
clear_cache(page_name, None, None)
|
||||||
if build: load_into_cache(page_name)
|
if build: load_into_cache(page_name)
|
Loading…
Reference in New Issue
Block a user