moved recent to memcache
This commit is contained in:
parent
2e580fc345
commit
73ccac4ccb
7
patches/december_2012/move_recent_to_memcache.py
Normal file
7
patches/december_2012/move_recent_to_memcache.py
Normal 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]))
|
Loading…
x
Reference in New Issue
Block a user