woocommerce / woocommerce-paypal-payments

https://wordpress.org/plugins/woocommerce-paypal-payments/
GNU General Public License v2.0
61 stars 47 forks source link

Add Litespeed Cache and W3 Total Cache compatibility (3190) #2316

Closed danieldudzic closed 4 weeks ago

danieldudzic commented 1 month ago

Description

This PR prevents Litespeed Cache and W3 Total Cache from minifying PayPal Payments JS files.

Additional info

In addition to Litespeed Cache and W3 Total Cache I have also tried breaking PayPal Payments with the following:

But actually wasn't able to, so no need for compatibility filtering.

Steps to Test

  1. With trunk:
  2. Install Litespeed Cache and W3 Total Cache separately.
  3. Activate JS minifying and all the most aggressive caching options.
  4. Check whether the button.js gets minified and bundled into the cached/minified JS file and is not loading individually.
  5. Switch to PCP-3190-prevent-w-3-total-cache-plugin-from-caching-minifying-scripts and make sure button.js loads individually.

Screenshots

N/A