Support » Plugin: LiteSpeed Cache » Excluding similar files and entire folders

  • Resolved patrickhealy

    (@patrickhealy)


    I’ve had an issue with LS nerfing jQuery on a site, rendering Ninja Table and Fluent Forms unusable by the visitors to the site. The problem turned out to be that we had “Load JS Deferred” turned on for optimization. We also have “Exclude JQuery” turned on so this shouldn’t be a problem – but it was.

    The only way for us to fix the issue was to turn off the “Load JS Deferred” feature – which isn’t optimal.

    The plugin developer recommended that we exclude the entire plugin to avoid that. My two questions are:

    – How do I exclude an entire plugin directory?
    /wp-content/plugins/fluentform
    /wp-content/plugins/fluentformpro
    /wp-content/plugins/ninja-tables
    /wp-content/plugins/ninja-tables-pro

    – What feature do I exclude from? There are A LOT of options here:

    /wp-admin/admin.php?page=litespeed-page_optm#settings_tuning

    from JS Excludes to JS Defer Excludes to URI Excludes. Really, I’d love an article that granularly details how to use these features as I have a lot of things I need to exclude and want to get them right without over-tuning this section.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I would suggest you to try exclude jquery.js first

    for exclude entire plugin dir , just go with “wp-content/plugins” , anything and everything inside of that dir will be excluded

    you can keep narrow it down to like

    wp-content/plugins/ninja-tables

    wp-content/plugins/fluentform

    these 2 string will match the 4 directories you mentioned above.

    partial match works here.

    if it’s about JS defer , then go “defer exclude” , JS exclude is for exclude file from being minified/combined , URI exclude will make URL to be excluded from all optimization.

    Best regards,

    patrickhealy

    (@patrickhealy)

    Thank you for this. So I don’t have to use a wildcard like:

    wp-content/plugins/fluentform*

    or

    wp-content/plugins/fluentform/*

    To accomplish this?

    Just putting wp-content/plugins/fluentform will exclude anything that starts with that portion of the string?

    Is that universal throughout the LS plugin?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    when partial match is supported , you should see it in the small explanation below the options

    Listed JS files will not be minified/combined. Both full URLs and partial strings can be used. One per line.

    no , no need to use wildcard symbol *

    e.g.

    https://domain.com/wp-content/plugins/something/

    https://domain.com/wp-content/plugins/something/directory2

    https://domain.com/wp-content/plugins/something/other-dir3

    https://domain.com/wp-content/plugins/something/another-dir4/something

    in above 4 strings , use string like “wp-content/plugins/something” , or simply “something” will match all

    but for obvious reason , you will want to keep it narrow as much as possible.

    Best regards,

    patrickhealy

    (@patrickhealy)

    Thanks. I’ll try that. This is deceptively simple. I’m glad I asked.

    Is there a knowledge base that details how to configure all of the fields in the Tuning section? I think it would be really helpful albeit daunting to keep updated with all the changes to the plugin.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    unfortunately not at this moment , but we are working on some documentation about it

    Best regards,

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