1. Home
  2. Common Problems
  3. How to Configure WP Rocket Settings

How to Configure WP Rocket Settings

Are your payment forms not working correctly for logged out users, or intermittently, with the WP Rocket plugin? Follow the steps below to ensure WP Simple Pay functions as expected with the WP Rocket plugin active.

Cache Settings

Add Payment Form and Payment Confirmation Pages to Never Cache

Under the Advanced Rules menu option, you will want to add the URLs of your payment form pages and your payment confirmation pages to be excluded from caching.

JavaScript Settings

Issue 1: Combine JavaScript and Minify JavaScript

In some cases, WP Simple Pay users run into issues because of the Combine JavaScript files option (found under the File Optimization tab).

If forms are not working as expected, please try the following steps:

  • Exclude the page or post from JS optimization by unselecting the Minify/combine JS option in the page or post editor, and then clearing the cache (before retesting), OR
  • In WP Rocket, disable the Combine JavaScript files option, save settings, and then clearing the cache (before retesting)

Issue 2: Load JavaScript deferred

Loading JavaScript deferred can cause issues with WP Simple Pay payment forms. The following should be added to Excluded JavaScript Files to ensure payment forms work as expected:


Was this article helpful?

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