WordPress Invitation Code - Troubleshooting - Codes Not Working Properly (Full-Page Cache Plugins Conflict)

Troubleshooting - Codes Not Working Properly (Conflict With Full-Page Cache Plugins)

Back to User Guide

Quick Read

If you are using a cache plugin, remember to exclude blocked content from caching.

What Is This Issue

Codes don't work properly. For instance, one code might simply refresh the page, or it might unblock content blocked by other codes.

Possible Cause and Solution

This may happen when utilizing the WordPress Invitation Code plugin together with full-page cache plugins, such as WP Rocket, W3 Total Cache, WP Super Cache, or even built-in cache plugins from hostings.

That's because cached pages don't load necessary code checks, and instead just loads the version from the memory. 


Disable the cache plugins and. If the problem is fixed, the plugins surely the issue.


It's necessary to exclude blocked content from caching altogether. This process depends on each hosting company, but probably you will open a support ticket and send them the page URL to ask them to exclude it from the cache

How To Exclude URLs From Cache?

This depends exclusively on the cache plugin you use. Below we list the basic instructions and resources of the most famous services.

External Resources

These procedures depend on third-party plugins, so they might change at any time. If you feel this page is outdated, get in touch with us.

1) WP Rocket

  • Option 1) Directly from the page - Edit the desired page and review the WP Rocket Options metabox
  • Option 2) List of URLs - Head to the plugin settings → Advanced Rules tab → Never cache (URLs) box. 

    Include the URLs relevant to the codes

Source: Exclude Pages from the Cache - WP Rocket Knowledge Base

2) W3 Total Cache

Head to Page Cache → Advanced and add the pages to be excluded.
If there are many pages, the creators suggest considering adding define(‘DONOTCACHEPAGE’, true); to the template, which will prevent the page from being cached.


3) WP Super Cache

Head to Advanced Tab Accepted Filenames & Rejected URIs section. Add the pages to be excluded.

[WP Super Cache] Support | WordPress.org

Avoid full-page caching

Since the version 1.4.4, the WordPress Invitation Code plugin has a built-in option that allows to avoid full-page caching. The option can be found in plugin settings under the General tab as shown on the screenshot below:

Enabling the option for avoiding full-page caching - Restrict Content Plugin
Enabling the option for avoiding full-page caching

Read more about the option Avoid full-page caching in this guide: WordPress Invitation Code - Settings - General (Configuring Access, Privacy)

More information about the WordPress Invitation Code Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.