fix in deletion of web cache

This commit is contained in:
Anand Doshi 2012-11-20 13:52:40 +05:30
parent f41f76b9f9
commit e4b157e787

View File

@ -235,7 +235,7 @@ def delete_cache(page_name):
* blog is un-published
"""
import webnotes
webnotes.conn.sql("""delete from `tabWeb Cache` where name=%s""", page_name)
webnotes.conn.sql("""delete from `tabWeb Cache` where name=%s""", (page_name,))
def refresh_cache(build=None):
"""delete and re-create web cache entries"""