How to configure caching plugins?
Configure WP Rocket, WP Super Cache, and LiteSpeed Cache to exclude Masteriyo pages (account, learn, checkout) and fix caching issues.
Is this actually a caching problem?
Caching gets blamed for a lot of problems it did not cause. Check the symptom first:
- A stale page, or content that belongs to a different logged-in user — yes, this is caching. Continue below.
- A 500 error, a blank white screen, or a PHP fatal error — not caching. A 500 is never a cache problem. Go to How to debug errors in Masteriyo.
- A student who paid but cannot open the course — almost never caching. Go to Student Can't Access a Course After Paying, which checks the enrollment and the order status first.
Remember there may be more than one cache in front of your site: the caching plugin, your host's own page cache, an object cache such as Redis or Memcached, and a CDN like Cloudflare. Excluding a page in the plugin does nothing if the host or the CDN is still serving a cached copy.
Excluding the Masteriyo pages
When using a caching plugin, make sure to exclude Masteriyo default pages from the cache, disable caching for logged-in users, and turn off the cache for the REST API. Adjusting these settings will help ensure a smoother experience and avoid any potential issues.
- Account
- Learn
- Courses
- Checkout
- Instructor Registration
Below, you will find the instruction to remove these pages from the cache for a few top caching plugins.
WP Rocket
The Masteriyo plugin is compatible with WP Rocket. Please make sure that the above-mentioned pages are excluded from the cache.
For this, navigate to Dashboard -> Pages -> Account -> Check on Never cache this page on the WP Rocket Sidebar Menu.

We suggest you avoid JS file minification under WP Rocket -> Settings -> File Optimization.

You can also use an alternative method for avoiding the desired pages from cache. This method also helps you to add bulk URLs for multiple pages. For this, go to Settings -> WP Rocket -> Advanced Rules. Add the desired page URLs on the Never Cache URLs input option.

WP Super Cache
Masteriyo is compatible with WP Super Cache. Please make sure that the above-mentioned pages are excluded from the cache by placing the corresponding endpoints here WP Admin -> Settings -> WP Super Cache -> Advanced.

LiteSpeed Cache
If you are using the LiteSpeed Cache plugin, follow the steps below.
- Go to LiteSpeed Cache > Cache > Cache.
- Turn off the Cache Logged-in Users.
-
Go to LiteSpeed Cache > Excludes
-
On the Do not Cache URLs add the following:
/account/$
/learn/$
/courses/$
/checkout/$
/instructor-registration/$
Excluding Masteriyo Sessions
If using database caching, exclude masteriyo_sessions from caching. Check your host's documentation for details or get in touch with hosting support.
Was this article helpful to you?
Give us Rating
Last edited on July 28, 2026.
Edit this page