# Caching issues

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.&#x20;

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.&#x20;

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

![](/files/-MN80zmkvirbjZgjDJE1)

* Go to **Advanced Rules** option and add these lines into **Never Cache URLs** section:

```
/rewards-program/(.) 
/referral-program/(.) 
/my-account/(.*)
```

![](/files/-MN81BqtH8hVBGa-ORM5)

* Scroll down and save.
* Clear your cache and go to the program pages in your store.&#x20;

### Console error

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.

```
Uncaught TypeError: Cannot read properties of undefined (reading 'Radix')
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.trybeans.com/integrations/woocommerce/caching-issues.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
