Title: Caching issues when switching back
Last modified: June 8, 2021

---

# Caching issues when switching back

 *  Resolved [brad hogan](https://wordpress.org/support/users/bradley2083/)
 * (@bradley2083)
 * [5 years ago](https://wordpress.org/support/topic/caching-issues-when-switching-back/)
 * Love the plugin. Running into an issue on a site where we use a plugin called
   Memberium (basically membership plugin that works well with Infusionsoft). The
   issue is that when I’m logged in with my admin account and I click to switch 
   to one of my customer accounts (Subscriber role) – that works – but when switch
   back, any shortcodes that reference user data (name, email, etc.) are still pulling
   the Subscriber user rather than the admin user. Odd thing is that I am logged
   back in as the admin (full access to back-end etc.).
 * Seems like some sort of caching mixup but I’ve tried and replicated with an Incognito
   window, after flushing the cache in Flywheel (our host) and still not working.
 * Any ideas?

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [5 years ago](https://wordpress.org/support/topic/caching-issues-when-switching-back/#post-14534568)
 * I would say it’s best to get in touch with the author of the shortcode in question
   so they can take a look. User Switching essentially just handles swapping out
   your browser cookies in order to switch you between accounts, there’s no caching
   involved. It might be that the shortcode uses an object cache that’s not being
   flushed correctly when switching between users.

Viewing 1 replies (of 1 total)

The topic ‘Caching issues when switching back’ is closed to new replies.

 * ![](https://ps.w.org/user-switching/assets/icon.svg?rev=3193956)
 * [User Switching](https://wordpress.org/plugins/user-switching/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-switching/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-switching/)
 * [Active Topics](https://wordpress.org/support/plugin/user-switching/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-switching/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-switching/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/caching-issues-when-switching-back/#post-14534568)
 * Status: resolved