Support » Plugin: Prevent Browser Caching » Dashboard File Cache Busting

  • Resolved Lee Hodson (VR51)


    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 2 replies - 1 through 2 (of 2 total)
  • Plugin Author kostyatereshchuk


    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


    Marking as resolved for now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.