• Resolved itsmeit

    (@itsmeit)


    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
    Settings: https://drive.google.com/file/d/1ncLxojButtJCNOzSkEmzPZ-IqSLXvOc5/view?usp=sharing

Viewing 1 replies (of 1 total)
  • Plugin Contributor Mark (a11n)

    (@thingalon)

    Hi @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.