Invitation Code Content Access - Troubleshooting - Codes Not Working Properly (Full-Page Cache Plugins Conflict)
Troubleshooting - Codes Not Working Properly (Conflict With Full-Page Cache Plugins)
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 Invitation Codes Content Access 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.
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
2) W3 Total Cache
3) WP Super Cache
Head to Advanced Tab → Accepted Filenames & Rejected URIs section. Add the pages to be excluded.