Caching issues
Issues with rewards and referral program not loading due to cache
Last updated
Issues with rewards and referral program not loading due to cache
Last updated
Many WordPress websites rely on caching to deliver good performance to visitors. While caching is very advantageous to improve website traffic, it has the inconvenience to be hard to debug especially for dynamic websites.
In the majority of cases, it is recommended to not cache dynamic pages, because the version of the page cached can be outdated or inaccurate. There are 2 types of pages on a website: static pages and dynamic pages. A static page is static as the name suggests, meaning that its content does not change. On the opposite, dynamic pages change often and therefore are not suited for being cached.
We recommend excluding the rewards program page and the referral program page from your caching system because they are dynamic pages that do not display the same content for each customer.
Here is a step-by-step instruction on how to achieve that with WP Rocket.
Go to WP Rocket > File Optimization section
Uncheck all checkboxes in the JavaScript Files section and save
Go to Advanced Rules option and add these lines into Never Cache URLs section:
Scroll down and save.
Clear your cache and go to the program pages in your store.
Beans scripts should always be loaded from Beans' official CDN. Caching Beans scripts may result in console errors. While it is recommended to not cache Beans scripts, Beans may function as expected even while being cached. If you decide to use a cached version of Beans you may get this error message in your browser's console, which can be ignored.