cms fixes
diff --git a/erpnext/website/doctype/style_settings/style_settings.py b/erpnext/website/doctype/style_settings/style_settings.py
index 3871628..8bae403 100644
--- a/erpnext/website/doctype/style_settings/style_settings.py
+++ b/erpnext/website/doctype/style_settings/style_settings.py
@@ -34,13 +34,14 @@
self.doc.custom_css = temp.render(doc = self.doc)
if self.doc.add_css:
self.doc.custom_css += '\n\n/* User CSS */\n\n' + self.doc.add_css
-
- from webnotes.cms.make import make_web_core
- make_web_core()
from webnotes.session_cache import clear_cache
clear_cache('Guest')
del self.doc.fields['small_font_size']
-
+
+ def on_update(self):
+ """rebuild pages"""
+ from webnotes.cms.make import make_web_core
+ make_web_core()
\ No newline at end of file