Skip Navigation

[Resolved] When I have Litespeed Cache javascript minify and combine, ajax functions for a view doesn't work

This support ticket is created 3 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 7 replies, has 2 voices.

Last updated by Tamelander 3 years, 8 months ago.

Assisted by: Waqar.

Author
Posts
#1941921

Hi,

When I have Litespeed Cache javascript minify and combine, ajax functions for a view doesn't work. If I disable javascript caching the ajax functions work. I want to know if there is one or more javascript files that I could exclude from caching?

#1942581

Is this a private message if I should supply a staging site?

#1943281

How can I send a private message here and supply credentials for my staging site?

#1943585

Thanks for writing back.

I've set your next reply as private so that you can share a clone/snapshot of the website, for further investigation.
( ref: https://toolset.com/faq/provide-supporters-copy-site/ )

#1950807

Thank you for sharing the admin access.

I've downloaded the clone of your website and will be doing some troubleshooting on it. I will share my findings as soon as it completes.

Thank you for your patience.

#1951067

Thank you for your assistance. Good luck!
M

#1956137

Thank you for waiting and sorry about the delay in getting back.

During troubleshooting, I noticed that it is not the combining or minifying of script files that break the AJAX. But it happens only when the inline scripts are combined with the external/file scripts.

In the "LiteSpeed Cache" plugin's settings, you can set the option "JS Combine External and Inline" to off and the view's AJAX will work.
( screenshot: hidden link )

#1961233

My issue is resolved now. Thank you!