Backend AJAX Save Function Fails with JS Optimization Active
-
Hello LiteSpeed Team,
I have an issue where your plugin is preventing a backend AJAX save function from working correctly. When LiteSpeed Cache is active, the function fails. When I deactivate the plugin, it works perfectly.
The Specific Action: I am in the WordPress editor for a post. I am using the “JetEngine” plugin, which has a meta box for managing related posts. When I try to manually re-order these posts and click the “Save order” button, the change does not save.
The Technical Error: We used the browser’s developer console and discovered that when LiteSpeed is active, the edit page contains multiple HTML elements with a non-unique ID of
#_ajax_nonce. This causes the WordPress security check to fail, and the AJAX save request is rejected.Troubleshooting Steps Already Taken: I have already tried the following settings, and none of them have resolved the issue:
- Set “Cache Logged-in Users” to OFF.
- Added
/wp-admin/to the “URI Excludes” in Page Optimization. - Individually disabled JS Minify, JS Combine, and Load JS Deferred.
Could you please provide a specific setting, or a more precise URI/script handle that I can exclude from your plugin’s optimizations to prevent this AJAX nonce conflict in the
wp-adminarea?Thank you for your help.
The topic ‘Backend AJAX Save Function Fails with JS Optimization Active’ is closed to new replies.