Merge branch 'master' into dev

This commit is contained in:
Anand Doshi 2012-07-13 08:15:34 +05:30
commit 1d2826d69d

View File

@ -223,7 +223,7 @@ def refresh_cache(build=None):
"""delete and re-create web cache entries"""
import webnotes
webnotes.conn.sql("delete from `tabWeb Cache`")
# webnotes.conn.sql("delete from `tabWeb Cache`")
query_map = {
'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():
create_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)