How to configure caching plugins?

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 the 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.

Account Page

We suggest you to avoid JS files minification from the WP Rocket -> Settings -> File Optimization.

Minify JS for WP Rocket

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 Rocket Advanced Rules

WP Super Cache

The 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.

wp-super-cache

Lite Speed 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.

disable-logged-in-cache-litespeed

  • Go to LiteSpeed Cache > Excludes

  • On the Do not Cache URLs add the following:

    /account/$

    /learn/$

    /checkout/$

    /instructor-registration/$

litespeedcache-exclude-urls

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 December 11, 2024.
Edit this page