Title: JavaScript error when clicking empty page cache / hide this message on dashboard
Last modified: November 24, 2022

---

# JavaScript error when clicking empty page cache / hide this message on dashboard

 *  Resolved [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * (@jamieburchell)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-when-clicking-empty-page-cache-hide-this-message-on-dashboard/)
 * On the main WordPress dashboard, after clicking Performance > Purge All Caches
   from the top bar, this message is shown:
 * > The setting change(s) made either invalidate the cached data or modify the 
   > behavior of the site. now to provide a consistent user experience.
 * Clicking either button results in this error in the console and no action taken:
 *     ```
       ?w3tc_note=flush_all:653 Uncaught ReferenceError: w3tc_beforeupload_unbind is not defined
           at HTMLInputElement.onclick (?w3tc_note=flush_all:653:467)
       ```
   

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-when-clicking-empty-page-cache-hide-this-message-on-dashboard/#post-16232007)
 * Hello [@jamieburchell](https://wordpress.org/support/users/jamieburchell/)
 * Thank you for reaching out.
    Can you please share which caching method you are
   using and if you are using multisite? Can you please share the website URL? Thanks!
 *  Thread Starter [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * (@jamieburchell)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-when-clicking-empty-page-cache-hide-this-message-on-dashboard/#post-16232516)
 * Not multisite, disk enhanced cache.
 * To reproduce:
    - Go to the main WordPress Dashboard > Home
    - Click “Performance” > “Purge Modules” > “Browser Cache: Update Media Query
      String”
 * You will see:
 * > The setting change(s) made either invalidate the cached data or modify the 
   > behaviour of the site. now to provide a consistent user experience.
    - Click either of the buttons to clear the cache
    - Nothing happens except for a JS error in the console.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-when-clicking-empty-page-cache-hide-this-message-on-dashboard/#post-16234816)
 * Hello [@jamieburchell](https://wordpress.org/support/users/jamieburchell/)
 * Thank you for your feedback.
    I am unable to replicate the problem and I believe
   the reason for this is the way your environment is structured. Are the rules 
   in Performance>Install for rewrite added accordingly? Thanks!
 *  Thread Starter [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * (@jamieburchell)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-when-clicking-empty-page-cache-hide-this-message-on-dashboard/#post-16234844)
 * [@vmarko](https://wordpress.org/support/users/vmarko/) Yes, the rules are added
   in the Apache configuration. To be clear, the disk caching is working as are 
   the rewrite rules.
 * If I go in to the Page Cache section and clear the caches from there, or from
   the top black bar, both work. It’s only when clicking them from the prompt on
   the dashboard (WordPress dashboard, not W3TC dashboard).
 * If you are unable to reproduce should I send a screencast?
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-when-clicking-empty-page-cache-hide-this-message-on-dashboard/#post-16235151)
 * Hey [@jamieburchell](https://wordpress.org/support/users/jamieburchell/)
 * Thank you for your feedback.
    Sure, please sent the screencast as we are not 
   able to replicate this. Thanks!
 *  Thread Starter [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * (@jamieburchell)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-when-clicking-empty-page-cache-hide-this-message-on-dashboard/#post-16235407)
 * Here ya go [@vmarko](https://wordpress.org/support/users/vmarko/)
 * [https://watch.screencastify.com/v/49xIEzxBQJHpMrXSX9Q6](https://watch.screencastify.com/v/49xIEzxBQJHpMrXSX9Q6)
 * Cheers
    Jamie
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-when-clicking-empty-page-cache-hide-this-message-on-dashboard/#post-16240927)
 * Hello [@jamieburchell](https://wordpress.org/support/users/jamieburchell/)
 * Thank you for providing the steps to reproduce the problem.
    Yes, I was able 
   to reproduce the issue. Checking the code with the team now. So, for the time
   being, make sure to purge the cache via the Plugin Dashboard or via the Top admin
   bar. Thanks!
 *  Thread Starter [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * (@jamieburchell)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-when-clicking-empty-page-cache-hide-this-message-on-dashboard/#post-16240955)
 * Excellent. No problem. Thanks [@vmarko](https://wordpress.org/support/users/vmarko/)
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-when-clicking-empty-page-cache-hide-this-message-on-dashboard/#post-16266009)
 * Hello [@jamieburchell](https://wordpress.org/support/users/jamieburchell/)
 * I’ve opened a [GitHub issue ](https://github.com/W3EDGE/w3-total-cache/issues/593)
   on your behalf in our Repository.
    Please make sure to check the progress of 
   the issue regularly. Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘JavaScript error when clicking empty page cache / hide this message on
dashboard’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-when-clicking-empty-page-cache-hide-this-message-on-dashboard/#post-16266009)
 * Status: resolved