Title: Cache served by Role.
Last modified: November 24, 2021

---

# Cache served by Role.

 *  Resolved [ofmarconi](https://wordpress.org/support/users/ofmarconi/)
 * (@ofmarconi)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/cache-served-by-role-2/)
 * Hi, I would like to know if your plugin is possible (with workers?):
 * I am creating a subscription site that has access to the cache, pages are generated
   on each visit, correct?
 * I split it into 2 subscriptions, one GOLD and one SILVER.
 * [https://github.com/wp-media/wp-rocket-helpers/tree/master/cache/wp-rocket-cache-common-cache-loggedin](https://github.com/wp-media/wp-rocket-helpers/tree/master/cache/wp-rocket-cache-common-cache-loggedin)
   
   Here at this link I found a code that makes WP-ROCKET deliver the same cache 
   to all users, but in my case I need it to be delivered by ROLE and not for all
   ROLES.
 * Do you think it’s possible to do this with your plugin?

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/cache-served-by-role-2/#post-15099812)
 * Hi,
    I am kinda confused by your question. When it comes to cahe there are a 
   few thumb rules: 1. Pages should never be served from cache for loggedin users
   as loggedin users make many dynamic operation which requires PHP to run and origin
   server to perform. So, caching loggedin user request will have many cascading
   issues. 2. For non loggedin users pages can be served from cache. Now in this
   case, whether they are GOLD or SILVER member, it really don’t matter as until
   they login they are just like any other normal user and seeing pages being served
   form cache.

Viewing 1 replies (of 1 total)

The topic ‘Cache served by Role.’ is closed to new replies.

 * ![](https://ps.w.org/wp-cloudflare-page-cache/assets/icon-256x256.gif?rev=3234997)
 * [Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals](https://wordpress.org/plugins/wp-cloudflare-page-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cloudflare-page-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cloudflare-page-cache/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [role](https://wordpress.org/support/topic-tag/role/)

 * 1 reply
 * 2 participants
 * Last reply from: [iSaumya](https://wordpress.org/support/users/isaumya/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/cache-served-by-role-2/#post-15099812)
 * Status: resolved