Title: Dashboard File Cache Busting
Last modified: May 9, 2019

---

# Dashboard File Cache Busting

 *  Resolved [Lee Hodson (VR51)](https://wordpress.org/support/users/leehodson/)
 * (@leehodson)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/dashboard-file-cache-busting/)
 * I need a cache buster that works in the admin area only or that works for site
   admins when they first login to a site. Does this plugin force web browsers to
   clear cached WordPress admin area files and can I set it to work once only per
   initial session login?

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

 *  Plugin Author [kostyatereshchuk](https://wordpress.org/support/users/kostyatereshchuk/)
 * (@kostyatereshchuk)
 * [7 years ago](https://wordpress.org/support/topic/dashboard-file-cache-busting/#post-11533167)
 * Hi Lee,
 * By default, this plugin does not change the assets (CSS, JS) version in the admin
   area because it may occur some issues in some plugins.
 * But to do it you can paste this code in the functions.php file of your theme:
 *     ```
       add_action( 'admin_init', function() {
           prevent_browser_caching( array(
               'assets_version' => time()
           ) );
       } );
       ```
   
 * Please let me know if it will work for you.
 * Thank you
 *  Plugin Author [kostyatereshchuk](https://wordpress.org/support/users/kostyatereshchuk/)
 * (@kostyatereshchuk)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/dashboard-file-cache-busting/#post-12017272)
 * Marking as resolved for now.
 *  [oper87](https://wordpress.org/support/users/oper87/)
 * (@oper87)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/dashboard-file-cache-busting/#post-12373060)
 * Hi Kostya,
 * I’ve experienced the problem when tried to reset cache from toolbar from the 
   admin area.
 * So the code below fixes this issue:
    `add_action( 'admin_init', array( $this,'
   update_css_js' ), 10000 );` in the ‘class-prevent-browser-caching.php’ file
 * Could you add it to the newest version?

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

The topic ‘Dashboard File Cache Busting’ is closed to new replies.

 * ![](https://ps.w.org/prevent-browser-caching/assets/icon-256x256.png?rev=1793665)
 * [Prevent Browser Caching](https://wordpress.org/plugins/prevent-browser-caching/)
 * [Support Threads](https://wordpress.org/support/plugin/prevent-browser-caching/)
 * [Active Topics](https://wordpress.org/support/plugin/prevent-browser-caching/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/prevent-browser-caching/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/prevent-browser-caching/reviews/)

 * 3 replies
 * 1 participant
 * Last reply from: [oper87](https://wordpress.org/support/users/oper87/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/dashboard-file-cache-busting/#post-12373060)
 * Status: resolved