1. Home
  2. Common Problems
  3. How to Configure SiteGround Optimizer Settings

How to Configure SiteGround Optimizer Settings

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.

Cache Settings

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.

JavaScript Settings

Exclude scripts from various optimizations

Exclude the following scripts from Minification, Combination, and Deferral, in SG Optimizer → Frontend → Javascript settings as indicated below. Note the scripts only need to be excluded if you have the optimization switched on.

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.

Was this article helpful?

Still stuck? How can we help?
Updated on September 16, 2022