• Resolved generosus

    (@generosus)


    Hi there,

    When we click on “Delete cache and minified CSS/JS” does your plugin also delete (clear) the cache of CSS/JS files minified by other plugins? (e.g., Perfmatters, Autoptimize, WP Minify, Fast Velocity Minifiy, etc.)? What file path does your plugin look for when deleting (clearing) the cache of those files?

    Note: The above assumes we have minify CSS files and minify JS files disabled in your plugin.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Emre Vona

    (@emrevona)

    When we click on “Delete cache and minified CSS/JS” does your plugin also delete (clear) the cache of CSS/JS files minified by other plugins? (e.g.,?Perfmatters, Autoptimize, WP Minify, Fast Velocity Minifiy, etc.)??

    no, sorry.

    What file path does your plugin look for when deleting (clearing) the cache of those files?

    /wp-content/cache/wpfc-minified/

    Thread Starter generosus

    (@generosus)

    Thank you, great answers.

    Last question:

    Would it be possible to modify or enhance your plugin to clear css/js files minified by other plugins? That is, based on the file paths: /wp-content/…/*.min.css and /wp-content/…/*.min.js?

    Cheers!

    Plugin Author Emre Vona

    (@emrevona)

    Thread Starter generosus

    (@generosus)

    Hi Emre,

    That helped. For my case, I contacted the developer of Perfmatters for assistance. This is what they provided:

    add_action('wpfc_delete_cache', function() {
    Perfmatters\CSS::clear_used_css();
    Perfmatters\Minify::clear_minified();
    });

    Note: Above only works for Perfmatters. For othe plugins, contact the respective plugin developer.

    So far, no issues.

    Thank you!

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