Wordpress LScache Plugin: Excluding similar files and entire folders
Last Updated on: Wed, 15 Apr 2026 00:00:02 Ive 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 shouldnt 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 isnt 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, Id 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. 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 its 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, Thank you for this. So I dont 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? 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, Thanks. Ill try that. This is deceptively simple. Im 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. Hi, unfortunately not at this moment , but we are working on some documentation about it Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference