• Resolved tim2020

    (@tim2020)


    I would like to inform if there is a way to flush all minify caches after modifying any JS files without deleting through admin panel or calling to flush_minify() function)…

    I want basically an automatically way to delete all minify caches as soon as I make any changes within js files.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @tim2020,

    You can use WP CLI for this

    Thread Starter tim2020

    (@tim2020)

    Hi @vmarko,

    Thanks for your quick response.

    Is there not any setting that helps to figure out if there is any modification into JS or css files. So it can regenerate the minify files? How about if I set media query string.

    Honestly, if so then it would be awesome feature without concerning about empty cache each time if we make any modification inside JS or CSS files.

    Thanks in advance,
    Tim

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,

    If you are using page cache disk enhanced, PHP won’t be touched and Apache/Nginx doesn’t know that minify is used. So there is no way the page cache will be updated right after the changed JS file is uploaded without a trigger. You can set a file watcher to watch changes in the CSS/JS files to call the WP CLI command, or you just have to click the purge button after an update.

    Thread Starter tim2020

    (@tim2020)

    thanks ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘W3 Total cache to automatically empty minify cache after modify js files’ is closed to new replies.