• Resolved fittastetic

    (@fittastetic)


    Is there a way to completely exclude a whole Plugin from any interaction especially caching from Asset-Clean Up Pro?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @fittastetic my sincere apologies for not getting back to you sooner!

    There are ways to exclude CSS/JS files from any caching if they belong to a specific plugin. There are exclusion options. Here are a few examples.

    Let’s suppose that you want to prevent all JS files from a certain plugin from being minified by Asset CleanUp. To do that, you can go to “Settings” -> “Optimize JavaScript” -> “Do not minify the JavaScript files matching the patterns below (one per line):” and input there something like /wp-content/plugins/the-plugin-title-here/.

    The same thing can be applied in “Combine loaded JS (JavaScript) into fewer files” to prevent any files that belong to a specific plugin from being added to the combined files (if the feature to combine JS files is enabled of course).

    Please check the following article which explains how the files from the caching directory are generated in the first place: https://assetcleanup.com/docs/how-css-js-are-created-within-the-caching-directory/

    Note that not all the features have exclusion options. These include: “Cache Dynamic Loaded JavaScript”, “Cache Dynamic Loaded CSS”, “Apply font-display: CSS property value”.

    Please let me know what plugin would you rather have excluded and why as it would help me in assisting you better. I noticed you added “a3 lazy load” to the tags. If you’re referring to “a3 Lazy Load” plugin, you can add the script that is loaded to the exclusion lists I mentioned.

    hello, is it possible not to cache one js file?

    Plugin Author Gabe Livan

    (@gabelivan)

    @dimisius it’s possible to exclude files from being minified/combined by using the exclusion options (textareas) from “Settings” -> “Optimize CSS” / “Optimize JavasScript” – is that what you need? Let me know and I’ll be gladly help you!

    Yes you are right. But when I add the path to my js file, it doesn’t work and my file ends up in the cache and my script doesn’t get activated
    /wp-content/themes/mythemes/assets/js/pitch-detector/vendor/aubiojs/build/(.*?).js

    my script works only if I completely deny access to the page I need to your plugin

    Plugin Author Gabe Livan

    (@gabelivan)

    @dimisius it would be easier if I could actually check the website. If you’re not comfortable sharing the URL here, then please send me an email to support [ at ) assetcleanup – dot – com.

    PS: Can you try adding “/wp-content/themes/mythemes/assets/js/pitch-detector/vendor/aubiojs/build/” to “Do not minify the JavaScript files matching the patterns below (one per line):” and “Do not combine the JavaScript files matching the patterns below (one per line, see pattern examples below):” options?

    Yes, I add to this field: “Do not minify the JavaScript files matching the patterns below (one per line):”, and to this field: “Do not combine the JavaScript files matching the patterns below (one per line, see pattern examples below):”, I even tried to create a plugin.
    I tried different ways
    Here are examples of how I indicated the paths:
    /wp-content/plugins/aubio
    /wp-content/plugins/aubio/assets/aubiojs/build
    /wp-content/themes/mythemes/assets/js/pitch-detector/vendor/aubiojs/build/aubio.js
    /wp-content/themes/onlinemictest/assets/js/pitch-detector/vendor/aubiojs/build

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Excluding Script files from Cache’ is closed to new replies.