How to Configure SiteGround Optimizer Settings
In This Document
Reading time: 3 minutes | Difficulty: Beginner
Overview
Are your payment forms not working correctly for logged out users, or only some of the time, with SiteGround Optimizer active? Follow the steps below to make sure WP Simple Pay works as expected alongside SiteGround Optimizer.
Since WP Simple Pay 4.17.5, payment forms load their data from your site as the page opens, so pages with payment forms can be cached. You only need to exclude your payment confirmation pages, plus WP Simple Pay’s scripts if you use frontend optimizations.
Prerequisites
- WP Simple Pay 4.17.5 or later. On earlier versions, also exclude your payment form pages.
- The SiteGround Optimizer plugin installed and active
Cache Settings
Exclude URLs from Caching
Exclude your payment confirmation page URLs from caching in the SG Optimizer → Caching settings, as shown below.

Add relative URLs (do not include https://www.domainname.com).
After saving the excluded URLs, use the Test URL Caching Status tool to confirm your confirmation pages are not being cached. After updating WP Simple Pay to 4.17.5, purge the SiteGround cache once.
JavaScript Settings
Exclude Scripts From Various Optimizations
Exclude the following scripts from Minification, Combination, and Deferral in the SG Optimizer → Frontend → Javascript settings, as shown below. The scripts only need to be excluded if that optimization is switched on.

The script values auto-populate in the exclude dropdown menu.
https://js.stripe.com/v3/
/plugins/wp-simple-pay-pro-3/includes/core/assets/js/dist/simpay-public-shared.js
/plugins/wp-simple-pay-pro-3/includes/core/assets/js/dist/simpay-public-upe.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/dist/simpay-public-pro-upe.js
You can read more about SiteGround Optimizer’s frontend optimization settings on their website.
What’s Next?
- How to Resolve Issues Caused by Cache and Optimization Plugins – General caching and JavaScript optimization guidance
- How to Set Payment Success and Failure Pages – Find the pages to exclude
Still have questions? We're here to help!
Last Modified: