mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-12 17:51:20 +00:00
__session_cache removed and introducted memcache for caching
This commit is contained in:
@@ -38,7 +38,7 @@ class DocType:
|
||||
if self.doc.add_css:
|
||||
self.doc.custom_css += '\n\n/* User CSS */\n\n' + self.doc.add_css
|
||||
|
||||
from webnotes.session_cache import clear_cache
|
||||
from webnotes.sessions import clear_cache
|
||||
clear_cache('Guest')
|
||||
|
||||
del self.doc.fields['small_font_size']
|
||||
|
||||
@@ -31,7 +31,7 @@ class DocType(website.web_page.Page):
|
||||
def if_home_clear_cache(self):
|
||||
"""if home page, clear cache"""
|
||||
if webnotes.conn.get_value("Website Settings", None, "home_page")==self.doc.name:
|
||||
from webnotes.session_cache import clear_cache
|
||||
from webnotes.sessions import clear_cache
|
||||
clear_cache('Guest')
|
||||
import website.web_cache
|
||||
website.web_cache.clear_cache(self.doc.page_name)
|
||||
|
||||
@@ -38,7 +38,7 @@ class DocType:
|
||||
#website.web_cache.refresh_cache(build=['Blog'])
|
||||
website.web_cache.refresh_cache()
|
||||
|
||||
from webnotes.session_cache import clear_cache
|
||||
from webnotes.sessions import clear_cache
|
||||
clear_cache('Guest')
|
||||
|
||||
def set_home_page(self):
|
||||
|
||||
Reference in New Issue
Block a user