Title: Cache when user log in.
Last modified: December 26, 2023

---

# Cache when user log in.

 *  Resolved [itsmeit](https://wordpress.org/support/users/itsmeit/)
 * (@itsmeit)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cache-when-user-log-in/)
 * Thank you for the excellent plugin. I have an inquiry regarding cache creation
   upon user login.
 * I’ve activated the “Enable caching for all visitors” feature. When a user logs
   in and the cache is generated, it produces two files: meta-wp-cache-xxx.php and
   wp-cache-xxx.php, where xxx represents the cache key for each page. However, 
   upon the user logging out and subsequently logging back in, the cache creation
   process restarts, generating two new files for each page, rather than reutilizing
   the previously created meta-wp-cache-xxx.php and wp-cache-xxx.php files.
 * Could you please clarify whether this behavior is a result of misconfiguration
   on my part or if it is an intended feature?
 * Log debug: [https://drive.google.com/file/d/1R6__MxIKhwEE166srGm4YVkEl9qMNTrk/view?usp=sharing](https://drive.google.com/file/d/1R6__MxIKhwEE166srGm4YVkEl9qMNTrk/view?usp=sharing)
   
   Settings: [https://drive.google.com/file/d/1ncLxojButtJCNOzSkEmzPZ-IqSLXvOc5/view?usp=sharing](https://drive.google.com/file/d/1ncLxojButtJCNOzSkEmzPZ-IqSLXvOc5/view?usp=sharing)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Mark (a11n)](https://wordpress.org/support/users/thingalon/)
 * (@thingalon)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cache-when-user-log-in/#post-17330954)
 * Hi [@itsmeit](https://wordpress.org/support/users/itsmeit/) – thanks for your
   question.
 * When caching pages for logged in users, the user’s session cookies are used as
   a part of the cache key to ensure that two different logged in users don’t see
   each other’s version of the page. It prevents cache pollution across users.
 * As the session token is used in the cache key, logging out and in again resets
   this – so it is expected behaviour.

Viewing 1 replies (of 1 total)

The topic ‘Cache when user log in.’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [Mark (a11n)](https://wordpress.org/support/users/thingalon/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/cache-when-user-log-in/#post-17330954)
 * Status: resolved