• Resolved rudolfl

    (@rudolfl)


    Hi

    We are using currency switcher plugin that stores currency in the PHP Session. As a result, different pages are cached in different currencies, depending on how those pages were accessed by users.

    Plugin developers suggest excluding pages with PHPSESSID cookies from being cached. I think, this will pretty much cripple caching. Am I right?

    Plugin in question is “Currency Switcher for WooCommerce” by WPWham

    Thank you

    Rudolf

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support qtwrk

    (@qtwrk)

    you can use the cache vary cookie in Cache -> advanced -> Vary Cookies

    Thread Starter rudolfl

    (@rudolfl)

    I read the documentation on “vary cookie” and I do not think this is a good idea. As far as I understand, PHPSESSID stores session ID which will be different for each user. This means same URL will be cached thousands of times and will not really ever be read from cache.

    Plugin Support qtwrk

    (@qtwrk)

    from what you have said , it’s gonna be either no cache at all , or less cache efficiency with vary

    from a cache plugin aspect , we’d like to have currency plugin that create one cookie for currency , like currency_cookie=USD or currency_cookie=EUR , this will make it easier to be compatible and with with a cache plugin

    if it utilize a very private phpsessid , then previous 2 cases is all what you can do about it 🙁

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Exclude PHPSESSID from cache — Currency Switcher problem’ is closed to new replies.