WordPress.org

Ready to get started?Download WordPress

Forums

tinymce js file cache causing problems (1 post)

  1. rb-cohen
    Member
    Posted 6 years ago #

    Unless I'm going crazy it looks as if the main tiny mce js file gets cached, on the server?

    My plugin adds a new button to the tinymce toolbar and I'm getting a number of reports from users about the button not appearing for them straight away, only after a few hours/days. I think its this cache because if I change the init array, it immediately appears.

    As far as I know, this code should fix it:

    function my_refresh_mce($ver) {
      $ver += 3; // or $ver .= 3; or ++$ver; etc.
      return $ver;
    }
    add_filter('tiny_mce_version', 'my_refresh_mce');

    But do I run this only once or should it be part of the main plugin filters that gets called on every page load?

    At the moment I only call it when the plugin is installed/updated but it seems to have had little effect.

    If there is no cache, what else could it be?

Topic Closed

This topic has been closed to new replies.

About this Topic