ESI cache in WP admin


Well-Known Member
What is the best way to see if cache is working properly in when logged in as wp admin?
I cannot see that it's working as it should.
In headers I see:
x-litespeed-cache-control: no-cache

Have the latest version of both LSWS (5.2.1 b.9) and LSCWP (1.4).
Both private cache and ESI is enabled in LSCWP.
Last edited:


Staff member
Just want to confirm which page are you visiting after logging in?
Cause it should have cache hit when you are visiting site but not wp-admin page.
You can enable debug log through LSCache plugin>Settings>Debug. Refresh page then you will see no cache reason next to the "X Cache_control -> no Cache" ( Admin page ).. as we can see the example reason is because "Admin page".


Well-Known Member
Tried most of the pages. It's a clean wp installation.
Both as administrator and subscriber.

Enabled debug. Tested with subscriber showing "Profile" page:

10/11/17 21:19:40.184 [x.x.x.x:65001 1 PIf] GET HTTP/1.1 /wp/wp-admin/profile.php
10/11/17 21:19:40.184 [x.x.x.x:65001 1 PIf] Query String:
10/11/17 21:19:40.184 [x.x.x.x:65001 1 PIf] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
10/11/17 21:19:40.184 [x.x.x.x:65001 1 PIf] Accept Encoding: gzip, deflate, br
10/11/17 21:19:40.184 [x.x.x.x:65001 1 PIf] Cookie _lscache_vary: admin_bar:1;logged-in:1
10/11/17 21:19:40.184 [x.x.x.x:65001 1 PIf] X-LSCACHE: true
10/11/17 21:19:40.188 [x.x.x.x:65001 1 PIf] Media init
10/11/17 21:19:40.188 [x.x.x.x:65001 1 PIf] getting user_id: 2
10/11/17 21:19:40.189 [x.x.x.x:65001 1 PIf] Vary show_admin_bar_front: true
10/11/17 21:19:40.189 [x.x.x.x:65001 1 PIf] Vary admin bar : true
10/11/17 21:19:40.189 [x.x.x.x:65001 1 PIf] CDN init
10/11/17 21:19:40.215 [x.x.x.x:65001 1 PIf] not cacheable before ctrl finalize
10/11/17 21:19:40.216 [x.x.x.x:65001 1 PIf] X-LiteSpeed-Cache-Control: no-cache
10/11/17 21:19:40.216 [x.x.x.x:65001 1 PIf] Media bypass: Not frontend HTML type
10/11/17 21:19:40.216 [x.x.x.x:65001 1 PIf] GUI bypassed by no counter
10/11/17 21:19:40.216 [x.x.x.x:65001 1 PIf] Optimizer bypass: Not frontend HTML type
10/11/17 21:19:40.216 [x.x.x.x:65001 1 PIf] CDN bypass
10/11/17 21:19:40.216 [x.x.x.x:65001 1 PIf] End response