Plugin Causing Conflicts with Official AMP Plugin




Wordpress LScache Plugin: Plugin Causing Conflicts with Official AMP Plugin

Last Updated on: Wed, 15 Apr 2026 00:00:02
I have the official AMP Plugin installed. I used the amp validator. My pages are generating AMP errors related to the LiteSpeed Cache plugin although the LiteSpeed Cache plugin is disabled on AMP pages within the LiteSpeed Cache plugin Page Optimization Settings. Under Tuning>URI Excludes, I have amp listed. It seems as though the plugin is not compatible with AMP websites. How do I get the LiteSpeed Cache plugin to work with the AMP plugin? Report number: UIDDQBWC The page I need help with: https://lazyjack.blog Hi, Please try go to Cache -> Cache -> set mobile cache to ON then add following code into wp-config.php, and purge all. if (stripos($_SERVER[HTTP_USER_AGENT], iPhone )!==false || stripos($_SERVER[HTTP_USER_AGENT], Mobile )!==false ) define( LITESPEED_BYPASS_OPTM, true ) after that, validate it again Best regards, That worked. I had the setting turned on but I didnt have the code added. The documentation is not clear on adding that code to make the website work with AMP. The documentation doesnt mention anything about using the setting with AMP. Cache Mobile? OFF This option enables users to display a separate html for mobile and desktop views. This is primarily used for non-responsive themes, but can also be used in situations where different widgets are loaded depending on browser type. The list of Mobile View User Agents must not be empty when this is on. https://docs.litespeedtech.com/lscache/lscwp/cache/



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference