LiteSpeed Cache wpDiscuz CSS/JS Minify Fix

When trying to use LiteSpeed Cache and wpDiscuz together, there are some problems when using minify CSS and JS. The comment box doesn’t work properly and you will see 404 errors in the console. We need to exclude wpDiscuz files from caching.

Just add these to the CSS/JS excludes.

JS Files:

/wp-content/plugins/wpdiscuz/assets/js/*
/wp-content/plugins/wpdiscuz/assets/third-party/quill/quill.js
/wp-content/plugins/wpdiscuz/assets/third-party/quill/quill.min.js

Quill was the only JS that seemed to log a warning in the console aside from the main JS exclusion. You may need to exclude more third party JS later on.

CSS Files:

/wp-content/plugins/wpdiscuz/assets/css/*

In wpDiscuz general settings for Combine JS and CSS Files to Optimize Page Loading Speed and Minify JS and CSS Files to Optimize Page Loading Speed, I’m leaving these turned on. So far I’m not seeing any issues.

wpDiscuz combine JS and CSS

I’ll keep an eye on this setup, but if something changes, I’ll update this.

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments