Title: Caching rules
Last modified: September 27, 2026

---

# Caching rules

 *  Resolved [derlehre](https://wordpress.org/support/users/derlehre/)
 * (@derlehre)
 * [6 days, 21 hours ago](https://wordpress.org/support/topic/caching-rules/)
 * Hello dear Masteriyo
 * Should i exclude the 4 rules of author, administrator, Masteriyo student and 
   Masteriyo instructor in Litespeed cache plugin? Or Masteriyo itself automatically
   exclude them like learn and account page?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [sauravkhanal](https://wordpress.org/support/users/sauravkhanal/)
 * (@sauravkhanal)
 * [6 days, 14 hours ago](https://wordpress.org/support/topic/caching-rules/#post-19030334)
 * Hi [@derlehre](https://wordpress.org/support/users/derlehre/),
 * You don’t need to manually exclude those roles. Masteriyo detects when LiteSpeed
   Cache is active and automatically prevents caching on the pages that actually
   need it: checkout, login, signup, instructor registration, the Learn page, and
   the Account pages. It sets `DONOTCACHEPAGE` and sends no-cache headers on those
   specific pages for every visitor who lands on them, so it doesn’t matter whether
   the visitor is a student, instructor, author, or admin.
 * This is actually more precise than a role-based exclusion: excluding whole user
   roles from cache (as LiteSpeed’s Cache Exclude settings do) would stop caching
   for _every_ page those roles ever visit, not just the dynamic Masteriyo ones,
   so course archives, single course pages, etc. would lose caching too, for no 
   reason. Masteriyo’s approach only turns off caching where the nonce-bearing, 
   per-user content actually lives.
 * One related setting worth checking: in LiteSpeed Cache → Cache → Advanced, make
   sure “Cache REST API” is disabled. Masteriyo’s dashboard and account pages rely
   on REST calls, and caching those responses can cause stale data. If it’s on, 
   you’ll see a notice about it directly in your WordPress admin.
 *  Thread Starter [derlehre](https://wordpress.org/support/users/derlehre/)
 * (@derlehre)
 * [6 days, 2 hours ago](https://wordpress.org/support/topic/caching-rules/#post-19030648)
 * [@sauravkhanal](https://wordpress.org/support/users/sauravkhanal/) Hello dear
 * Thanks for your response. So there’s no need to do this? Right?
 * > [View post on imgur.com](https://imgur.com/a/64pZwBY)
    -  This reply was modified 6 days, 2 hours ago by [derlehre](https://wordpress.org/support/users/derlehre/).
 *  Plugin Support [sauravkhanal](https://wordpress.org/support/users/sauravkhanal/)
 * (@sauravkhanal)
 * [5 days, 17 hours ago](https://wordpress.org/support/topic/caching-rules/#post-19030804)
 * Hi [@derlehre](https://wordpress.org/support/users/derlehre/),
 * Yes, that’s right; no need to do anything manually. As long as LiteSpeed Cache
   is active, Masteriyo automatically excludes the checkout, login, signup, instructor
   registration, learn, and account pages from caching for every visitor, regardless
   of role. You don’t need to add those four roles (author, administrator, student,
   instructor) to LiteSpeed’s cache exclusion list.
 * The only thing worth double-checking on your end is that “Cache REST API” is 
   turned off in LiteSpeed Cache → Cache → Advanced, since that’s a separate setting
   Masteriyo doesn’t control.
 *  Thread Starter [derlehre](https://wordpress.org/support/users/derlehre/)
 * (@derlehre)
 * [5 days, 4 hours ago](https://wordpress.org/support/topic/caching-rules/#post-19031588)
 * thank you so much desr [@sauravkhanal](https://wordpress.org/support/users/sauravkhanal/)
   you help me in hard moments. Even the host provider didn’t pay attention to my
   ticket about caching but you helped me accurately. Thank you so much dear. And
   Thanks for your time.
 *  Plugin Support [sauravkhanal](https://wordpress.org/support/users/sauravkhanal/)
 * (@sauravkhanal)
 * [4 days, 20 hours ago](https://wordpress.org/support/topic/caching-rules/#post-19031807)
 * Thank you so much for your kind words! We’re really glad to hear that everything
   is working well for you [@derlehre](https://wordpress.org/support/users/derlehre/).

Viewing 5 replies - 1 through 5 (of 5 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcaching-rules%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/learning-management-system/assets/icon-256x256.gif?rev=3520181)
 * [Masteriyo LMS – LMS Course Builder, Quizzes & Certificates](https://wordpress.org/plugins/learning-management-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/learning-management-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/learning-management-system/)
 * [Active Topics](https://wordpress.org/support/plugin/learning-management-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/learning-management-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/learning-management-system/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [sauravkhanal](https://wordpress.org/support/users/sauravkhanal/)
 * Last activity: [4 days, 20 hours ago](https://wordpress.org/support/topic/caching-rules/#post-19031807)
 * Status: resolved