summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--wysiwyg.install20
2 files changed, 21 insertions, 0 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 90b3958..e190971 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -6,6 +6,7 @@ Wysiwyg x.x-x.x, xxxx-xx-xx
Wysiwyg 5.x-3.x, xxxx-xx-xx
---------------------------
+#490914 by sun: Fixed JS/CSS not updated after update with caching enabled.
#522440 by authentictech, sun: UX: Fixed user interface for Wysiwyg profiles.
#507608 by jfh: Added WYMeditor instance API methods.
#496744 by TwoD: Fixed FCKeditor: "Apply source formatting" not working.
diff --git a/wysiwyg.install b/wysiwyg.install
index a4e2fd3..a3cd474 100644
--- a/wysiwyg.install
+++ b/wysiwyg.install
@@ -167,3 +167,23 @@ function wysiwyg_update_5001() {
return $ret;
}
+/**
+ * Clear JS/CSS caches to ensure that clients load fresh copies.
+ */
+function wysiwyg_update_5200() {
+ $ret = array();
+ drupal_clear_css_cache();
+
+ // Rebuild the menu to remove old admin/settings/wysiwyg/profile item.
+ menu_rebuild();
+
+ // Flush content caches.
+ cache_clear_all();
+
+ $ret[] = array(
+ 'success' => TRUE,
+ 'query' => 'Caches have been flushed.',
+ );
+ return $ret;
+}
+