Title: ESI error
Last modified: January 22, 2020

---

# ESI error

 *  Resolved [dallass](https://wordpress.org/support/users/dallass/)
 * (@dallass)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/esi-error/)
 * Hello,
 * I have activated the ESI for the widgets and it is working OK.
    However, I do
   not want to cache the logged-in users, so I tuned this OFF. But, the logged in
   users are cached. If I turn OFF ESI, the logged in users are not cached.
 * So, question:
    – is it a normal behavior that if ESI it is on the logged-in users
   are cached (regardless if the fact that the option it is OFF).

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

 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/esi-error/#post-12354482)
 * Hi [@dallass](https://wordpress.org/support/users/dallass/), you are right that
   currently if you turn ON ESI with Cache Logged-in Users OFF, you still get cache
   HIT. I’m checking on this issue and will update you later.
 *  Thread Starter [dallass](https://wordpress.org/support/users/dallass/)
 * (@dallass)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/esi-error/#post-12357465)
 * Hi Stanley,
 * The problem goes a bit further.
 * I have a multisite:
    1. main site, is getting 80% traffic from mobiles; 2. second
   site, is getting 80% traffic from mobile; 3. third site – I do not want cache.
 * As I get most of the traffic of the mobile, I have to enable the mobile cache.
   
   To enable mobile cache, I have to enabled LiteSpeed, network wide. On the site
   1 and 2 it is OK.
 * But, the 3rd site is also getting cache, although Lite Speed it is set on Disable.
   
   Even if I exclude the roles, it is still being getting cached.
 * If I disable the plugin network wide, and enable it site by site, I do not get
   the mobile cache.
 * Is this also normal ?
    -  This reply was modified 6 years, 4 months ago by [dallass](https://wordpress.org/support/users/dallass/).
 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/esi-error/#post-12361048)
 * Please check on your `Network Admin > LiteSpeed Cache setting`, you can set `
   Network Enable Cache`, `Use Primary Site Configuration` to OFF for separating
   the cache setting on each site.
 *  Thread Starter [dallass](https://wordpress.org/support/users/dallass/)
 * (@dallass)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/esi-error/#post-12361800)
 * Use Primary Site Configuration it is OFF and it is still caching.
    But, it is
   still caching the subsites (I use subdomains).
 * Also, the ESI it is still a problem.
 * I don’t know if this 2 are connected.
 *  Thread Starter [dallass](https://wordpress.org/support/users/dallass/)
 * (@dallass)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/esi-error/#post-12367975)
 * Good morning,
 * Sorry to insist, but this is really a big problem for me.
    Can I please have 
   a solution for both problem: – ESI error; – Caching all the sites in the network
   as the primary site.
 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/esi-error/#post-12393009)
 * Hi [@dallass](https://wordpress.org/support/users/dallass/), sorry for the late
   reply that I’m on last week. We are working on the issue now and will get you
   back soon.
 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/esi-error/#post-12418073)
 * Hi [@dallass](https://wordpress.org/support/users/dallass/) sorry for the delay,
   please try the following solution:
 * 1) ESI error
    – After turning ON ESI, Cache Logged-in Users is no-longer useful.
   Please check the roles you wish to exclude from cache on `Settings > Excludes
   > Do Not Cache Roles` instead.
 * 2) Caching all the sites in the network as the primary site.
    – Could you try
   these settings: **Network** Network Enable Cache [ON] Use Primary Site Configuration[
   OFF] Cache Mobile [ON]
 * **Subsite with cache**
    Enable LiteSpeed Cache [Enable]
 * **Subsite without cache**
    Enable LiteSpeed Cache [Disable]
 * This should be able to separate the mobile cache when the cache is activated.
 *  Thread Starter [dallass](https://wordpress.org/support/users/dallass/)
 * (@dallass)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/esi-error/#post-12420765)
 * Hi Stanley,
 * It does not make sense to discuss about ESI when the basic cache does not work.
   
   So, regarding point 2, I have testde this again today (although I did it also
   before) and it is not working. It is caching everything.
 * So, I need:
    – mobile cache – main site cached – subsite 1 cached – subsite 2
   not cached.
 * This is quite basic I think, but it is not working.
 * In other words, the plugin doesn’t work for multisite, if this is not possible.
 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/esi-error/#post-12421636)
 * Could you please [join our Slack channel and find me(Stanley Cheung at Litespeed)](https://litespeedtech.com/slack/)
   or [submit a ticket here](https://store.litespeedtech.com/store/submitticket.php)
   for helping us to reproduce the bug, thanks.

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

The topic ‘ESI error’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/esi-error/#post-12421636)
 * Status: resolved