Litespeed Cache plugin

Hello everyone! I was wondering if there are any settings in Litespeed Cache plugin i should be careful with, or if i need to exclude anything so it doesn’t have any conflict with X PRO?
Thank you!

Hey There,

The default settings should work fine as long as you do not run any additional caching plugins on top of it. All the best!

1 Like

Hi @rubin!
In W3 Total Cache i had to exclude the following parts of X Pro from minification:

wp-content/themes/pro/cornerstone/assets/dist-app/js/cs-vendor.js
wp-content/themes/pro/cornerstone/assets/dist-app/js/cs.js
wp-content/themes/pro/cornerstone/assets/dist/js/site/cs-head.js
wp-content/themes/pro/cornerstone/assets/dist/js/site/cs-body.js
wp-content/themes/pro/cornerstone/assets/dist/js/admin/huebert.js
wp-content/themes/pro/framework/dist/js/site/x.js

Should i also exclude them from minification in LiteSpeed Cache?
Thank you so much!

Hello Christian,

Thanks for updating in! Those filenames will change if you are now using the latest version Pro 3.1.1 because we have consolidated cs-head.js and cs-body.js into single script loading in the footer. It is now:

wp-content/themes/pro/cornerstone/assets/dist/js/site/cs.{123456n}.js
wp-content/themes/pro/framework/dist/js/site/x.js

where {123456n} is dynamically generated to avoid getting cached all the time.

Please check out our release notes and changelog here:

Hope this helps.

1 Like

Hi @RueNel, thank you for your answer! I have a question though, should i copy these 2 lines;

wp-content/themes/pro/cornerstone/assets/dist/js/site/cs.{123456n}.js
wp-content/themes/pro/framework/dist/js/site/x.js

and paste them into CSS excludes in the Litespeed plugin?

Thank you so much!

Hi Cristian,

Not in the “excludes CSS” but in excludes JS because those files are js files.

Yes, please excludes those js files from minification as well, as those files are already minified and might cause an issue when re-minified again.

Thanks,

1 Like

Thank you all!

You are most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.