This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
[minor] [fix] update session to db on clear cache
version-14
Pratik Vyas
11 years ago
parent
396412b6fa
commit
0b95e8e685
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
webnotes/sessions.py
+ 1
- 0
webnotes/sessions.py
View File
@@ -19,6 +19,7 @@ import webnotes.plugins
@webnotes.whitelist()
def clear(user=None):
webnotes.local.session_obj.update(force=True)
webnotes.local.conn.commit()
clear_cache(webnotes.session.user)
webnotes.response['message'] = "Cache Cleared"
Write
Preview
Loading…
Cancel
Save