ESI Causing Other Users to See Other Users WP-Admin Bar




Wordpress LScache Plugin: ESI Causing Other Users to See Other Users WP-Admin Bar

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, Ive discovered another issue. LS report number is JPQPPWQC. I am testing with two users. User1 is assigned role1, user2 is assigned role2. Both of these roles are assigned to the same vary group in the ESI tab, ESI is enabled, and Cache Admin Bar is enabled. By design, user1 sees the wp-admin bar on the front end, user2 does not. The problem is that whoever accesses the site first wins. If user1 accesses the site first, user2 receives the cached wp-admin bar with user1s information shown. Not how ESI should work! The issue goes away if I disable ESI. Please let me know if you have any questions. Jake Hi, @tekfused Im sorry, it seems this question slipped through the cracks! Do you still need help? Or have you figured it out by now? One thing I can point out is that vary groups are actually not part of ESI at all, despite the fact that they appear on the ESI tab. Vary groups are meant to allow different roles to see different publicly cached versions of a page. So, you dont need ESI on for that aspect of it to work. The fact that it actually doesnt work when ESI is enabled is a problem, though, since you do need ESI for the personalized elements of the Admin Bar. Please let us know if you are still seeing this same behavior, and we will work with you to figure it out. Again, apologies for the delay in responding. Thanks! Hi @lclarke! Thanks for the response! The issue is still occurring (My users keep messaging me about it, lol). Thank you for clarifying. The interesting part here is that most of my users are assigned to a role that is configured NOT to show the wp-admin bar at all (configured in user editor pro), yet because of this bug, they do see it ? and see a different persons info. Let me know if you need anything else. Hopefully you all can reproduce this easily, unfortunately my free time is very limited right now due to some events at work. Thank you! Jake



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference