• Resolved javiermates

    (@javiermates)


    I have discovered that, in multisite installations, the cache for registered users does not work properly.

    The cache files are generated, but they are generated every time you access a page, regardless of garbage collection options. It does not matter if the cache is activated individually for each site, or globally.

    In the simple installations I’ve seen, the cache works as expected.

    Is it a cache limitation, is it a bug, or is it a problem with the sites I’ve reviewed?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @javiermates,

    It could be a limitation or a bug in the cache implementation in multisite installations. It could also be due to the specific configurations and setup of the sites you reviewed. In any case, that’s just speculation, as we haven’t done thorough testing with multisite installations.

    While we look into this internally, can you share some more information about your setup(s) such as the version of the plugin being used, the exact configurations and settings/options in use, and any relevant error messages or logs (if any)?

    Hi @javiermates,

    Could you please give me some details explaining how the caching doesn’t work right now on a multisite for you? My sites are hosted on a multisite install, and I haven’t noticed anything wrong, but I may have overlooked something.

    Thread Starter javiermates

    (@javiermates)

    Hello! The cache is generated correctly (it can be seen by turning on debug comments), but it is not used on a subsequent visit. That is, when a registered user enters the site, a cache is always generated, it does not matter if it had already been generated before, so it is never used.

    It doesn’t matter if the cache is in simple or expert mode.

    This does not happen with anonymous users. With them everything works perfectly.

    I have tested it in a multisite installation with only one site created (the main one).

    If I convert the installation to a normal one (not multisite), the cache works correctly.

    Sorry for the late reply. Is your multisite a sub-directory one or a hostname one?

    My multisite has 3 blogs on it and it’s a hostname one. I just confirmed that the cache works ok on the main site. Subsequent reloading of the main page uses the cache file.

    Do you have any plugins installed? Can you deactivate them one-by-one to check if the cache starts working again?

    You could enable the debug log too. That will tell you a lot about what the plugin is doing. You might notice a log entry like the following:

    [timestamp] / wp_cache_get_cookies_values: return XXXX

    XXXX is a hash of cookies for that hostname. That hash shouldn’t change between visits but if you have a plugin that changes it, the plugin will generate a whole new cache file.

    Check your wp-content/cache/ directory and check if the cache file was actually created properly. Maybe it wasn’t. There might be errors in your PHP error_log. This is unlikely to be the reason, but it’s worth looking.

    Thread Starter javiermates

    (@javiermates)

    I promise to review what you tell me, but it will take a while. For now my installations are no longer in multisite mode, so I would have to spend some time doing tests in the sandbox, but for now I don’t have time, but I want to help to discover the cause of the problem.

    I will review it soon.

    Hi @javiermates ,

    Looking forward to hearing what you discover! We’ll keep the thread open for you. ??


    Best,

    Cena

    Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hi there, @javiermates,

    Do you have any news to share with us? It’s been one week since this topic was last updated, and we usually mark threads as solved after one week of no updates.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cache for registered users in multisite installations’ is closed to new replies.