• Resolved alexandreromani2206

    (@alexandreromani2206)


    Hello.
    I have troubles with the _lscache_vary cookie on a multisite installation.

    When I navigate through the website in incognito mode or with a new browser for the first time, a _lscache_vary cookie is set.

    -> But, after visiting some pages or after going from the subdomain site to the main domain site, a second _lscache_vary cookie is set and the existing one remains there.

    After this, each refresh of the page miss the cache.
    I noticed that on both cookies there is often one with a single dot “.” prefix (meaning that it apply to all subdomain) and one without this prefix.

    This behavior is strange and makes the cache not used 70% of the time.

Viewing 6 replies - 1 through 6 (of 6 total)
  • This behavior is strange and makes the cache not used 70% of the time.

    Yes and No. The real problem is that the plugin is only conditionally multisite ready if 1 .tld and 1 subdomain are used instead of two .tld, because the programming does not provide for it or does not take it into account. There is a function in the code that would set the cookie correctly, but it is unused, especially since the necessary constants appear to be undefined.

    Thread Starter alexandreromani2206

    (@alexandreromani2206)

    Do you have an idea of what should I do ?

    1.) Change subdomain to .tld (Fastest way)
    2.) Report a “bug” (already done at Slack)
    3.) Do a suggestion in suggestion-box-wp-qc channel at Slack (where you already reported this issue)

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    in Cache -> Advance , you can customize the cookie name per site , please give it a try

    Best regards,

    Thread Starter alexandreromani2206

    (@alexandreromani2206)

    Thanks @serpentdriver I will try this if I don’t get any other fix.
    @qtwrk hi !

    The option is only available on the network admin settings and is not sitespecific, it applies to all sites at once.

    Plugin Support qtwrk

    (@qtwrk)

    this must be weird

    I will try to set up test sites and try , I thoguth cookie is isolated per each subdomain ?

    could you please check in your sub sites , when login , how was that response heder for set-cookie ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘_lscache_vary defined twice so cache is missed’ is closed to new replies.