Merge branch 'master' of github.com:webnotes/wnframework

This commit is contained in:
Rushabh Mehta 2013-01-10 14:28:43 +05:30
commit 9f20811d57
2 changed files with 5 additions and 2 deletions

View file

@ -14,7 +14,9 @@ def sync_all(force=0):
try:
webnotes.clear_cache()
except Exception, e:
if e[0]!=1146: raise e
if e.args[0]!=1146:
print webnotes.getTraceback()
raise e
return modules
def sync_core_doctypes(force=0):

View file

@ -46,7 +46,8 @@ def clear_cache(user=None):
webnotes.cache().delete_keys("session:")
if webnotes.session:
webnotes.cache().delete_keys("bootinfo:" + webnotes.session.user)
webnotes.cache().delete_keys("session:" + webnotes.session.sid)
if webnotes.session.sid:
webnotes.cache().delete_keys("session:" + webnotes.session.sid)
def clear_sessions(user=None, keep_current=False):
if not user: