How to Configure SiteGround Optimizer Settings
In This Document
Are your payment forms not working correctly for logged out users, or intermittently, with the SiteGround Optimizer plugin? Follow the steps below to ensure WP Simple Pay functions as expected with the SiteGround Optimizer plugin active.
Exclude URLs from Caching
To ensure that your payments forms work properly in conjunction with SiteGround Optimizer, you need to exclude your payment form and payment confirmation page URLs from caching in the SG Optimizer → Caching settings, as shown below.
You need to add relative URLs (do not include https://www.domainname.com, etc.)
After confirming the excluded URLs, use the Test URL Caching Status tool to verify that your payment form pages are indeed not being cached.
Exclude Scripts From Various Optimizations
The script values will auto populate from the exclude drop down menu.
https://js.stripe.com/v3/ /plugins/wp-simple-pay-pro-3/includes/core/assets/js/simpay-public-shared.min.js /plugins/wp-simple-pay-pro-3/includes/core/assets/js/simpay-public.min.js /plugins/wp-simple-pay-pro-3/includes/core/assets/js/vendor/accounting.min.js /plugins/wp-simple-pay-pro-3/includes/pro/assets/js/simpay-public-pro.min.js
You can read more about SiteGround Optimizers frontend optimization settings on their website.