clear_cache

This commit is contained in:
Rushabh Mehta 2012-02-29 15:50:14 +05:30
parent 41031b3631
commit 132e20df4f

View file

@ -29,9 +29,9 @@ permission, homepage, control panel variables, system defaults etc
import webnotes
@webnotes.whitelist()
def clear():
def clear(user=None):
"""clear all cache"""
clear_cache()
clear_cache(user)
webnotes.response['message'] = "Cache Cleared"
def clear_cache(user=''):