moved recent to memcache

This commit is contained in:
Rushabh Mehta 2012-12-12 14:42:17 +05:30
parent 2e580fc345
commit 73ccac4ccb

View File

@ -0,0 +1,7 @@
import webnotes, json
def execute():
for p in webnotes.conn.sql("""select name, recent_documents from
tabProfile where ifnull(recent_documents,'')!=''"""):
if not '~~~' in p[1]:
webnotes.cache().set_value("recent:" + p[0], json.loads(p[1]))