Title: Weird Caching Issue
Last modified: March 9, 2026

---

# Weird Caching Issue

 *  [biglifesolutions](https://wordpress.org/support/users/biglifesolutions/)
 * (@biglifesolutions)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/weird-caching-issue-4/)
 * Hi
 * Great plugin, love it and use it to check materials and notes that I allocate
   to coaching clients are being allocated to the right clients so I don’t breach
   confidentiality. I’m encountering a strange issue that has only just started 
   happening.
 * When I view as a user it displays correctly with their name. But when I go back
   to Admin, instead of showing my name it has started showing the name if the user
   I was previously viewing hat page as. Alarmingly, this is also happening for 
   any user who tried to login to their dashboard – it says “Welcome to your dashboard[
   Name of User I just Viewed a Page as]. If I totally clear the cache it rectified,
   but then immediately does it again when I view as another user.
 * I can cope with needing to clear the cache but it is obviously not a good look
   if my clients log in and are greeted with someone else’s name.
 * Any ideas what may be going on?

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

 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/weird-caching-issue-4/#post-18845790)
 * Hi [@biglifesolutions](https://wordpress.org/support/users/biglifesolutions/)
 * WordPress core doesn’t include cache like you mention so I assume you have a 
   plugin active which handles caching. Unfortunately, I do not have custom compatibility
   for every cache plugin out there, as this quickly becomes unmaintainable, so 
   I think a custom solution would be best here.
 * There is a hook available that will run when a view is active: “vaa_view_admin_as_do_view”.
   Depending on your cache plugin you could disable cache when this action runs.
 * (Edit) Alternatively, you could just disable cache for logged-in users.
 * If you give me more info on your installation then I could help you further 🙂
 * Cheers, Jory
    -  This reply was modified 1 month, 1 week ago by [Jory Hogeveen](https://wordpress.org/support/users/keraweb/).
 *  Thread Starter [biglifesolutions](https://wordpress.org/support/users/biglifesolutions/)
 * (@biglifesolutions)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/weird-caching-issue-4/#post-18847039)
 * Amazing, thanks Jory. You gave me an idea and I am simply excluding the specific
   URLs that seem to be affected, and that appears to be working.
 * I’d be interested in a more global solution – I use Lightspeed cache and couldn’t
   see any way to get it to disable caching when the hook ran. As I am not that 
   technical I may be missing something obvious, but if you know off the top of 
   your head hat I need to do that would be brilliant.
 * Thanks for your help!
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/weird-caching-issue-4/#post-18850744)
 * Hi [@biglifesolutions](https://wordpress.org/support/users/biglifesolutions/)
 * Perfect, good to hear!
   And luckily Litespeed already includes several actions
   to clear cache easily. I believe the following code should work:
 *     ```wp-block-code
       <?phpadd_action('vaa_view_admin_as_do_view', function() {	if ( ! defined( 'DONOTCACHEPAGE' ) ) {		define( 'DONOTCACHEPAGE', true );	}});
       ```
   
 * Important! This code should be added as a MU plugin, inside “`wp-content/mu-plugins/`“.
   You can name the file as you’d like as long as its a .php file, for example “`
   vaa-litespeed.php`“.
 * Let me know, cheers! Jory

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

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

 * ![](https://ps.w.org/view-admin-as/assets/icon-256x256.png?rev=1821735)
 * [View Admin As](https://wordpress.org/plugins/view-admin-as/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/view-admin-as/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/view-admin-as/)
 * [Active Topics](https://wordpress.org/support/plugin/view-admin-as/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/view-admin-as/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/view-admin-as/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * Last activity: [1 month, 1 week ago](https://wordpress.org/support/topic/weird-caching-issue-4/#post-18850744)
 * Status: not resolved