Merge branch 'master' of github.com:webnotes/wnframework
This commit is contained in:
commit
9f20811d57
2 changed files with 5 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue