How can we help?

Search for answers or browse our knowledge base.

Table of Contents

How to fix CAPTCHA not showing due to caching issue

The CAPTCHA 4WP plugin uses a script to connect to the Google ReCAPTCHA service. In certain situations where WordPress caching is enabled, the script is cached and as such won’t be able to run properly. Excluding the script from caching fixes the issue in most cases.

In this article, we will be showing you how to exclude the ReCAPTCHA script from caching on WP Rocket. If you are experiencing this issue using a different caching system, kindly open a support ticket.

Excluding RECAPTCHA script from WP Rocket’s caching

To exclude the ReCAPTCHA script from caching on WP Rocket:

  1. Click on Settings from the WordPress main menu
  2. Click on WP Rocket from the piano menu
  3. Click on FILE OPTIMIZATION from WP Rocket’s main menu
  4. Scroll down to the JavaScript Files section
  5. Locate the Excluded JavaScript files section
  6. Enter www.google.com/recaptcha/api.js in the provided textbox
  7. Click on SAVE CHANGES
CAPTCHA load JS deferred
You might need to clear your cache before the setting takes effect.