Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Oscar Gare

    (@oscargare)

    Hi Lena,
    you must set “Default Customer Address” to Geolocation with caching support in WooCommerce -> settings, General Settings

    https://docs.woothemes.com/document/configuring-woocommerce-settings/#section-1

    https://woocommerce.wordpress.com/2015/07/02/making-geolocation-static-cache-friendly-in-2-4/

    Thank you!

    Thread Starter artbylena

    (@artbylena)

    Hi Oscar,

    I believe, your suggestion was in the right direction… but:

    1. Having URL query like https://www.artbylena.com/theme/abstracts/ ?v=7516fd43adaa should kill SEO, as they say (not 100% sure, but do not want to risk)

    2. Had to switch from page enhanced to basic for ?v= pages to be cached at all (not a problem, just a note to anyone reading this thread)

    Now, the real problems:

    a) For some reason, switching country does not change the URL’s ?v= part, and (maybe because of that):

    b) When browsing the site, going from one link to another, the connection between currency displayed and country shown in the widget is lost. So, need to choose “other country” and back to the real one. A big mess.

    c) The worst of all: no visible caching effect. The “fragments” are being created on disk, including the additional JSONs from AJAX calls mentioned by Mike Jolley, and supposedly used by W3TC – but the speed is absolutely the same as with no cache at all.

    So far, the problem is not solved for me…

    Thank you!
    — Lena

    Plugin Author Oscar Gare

    (@oscargare)

    Hi Lena,
    I will try to answer all your questions:

    1. “?v=7516fd43adaa” is the solution that provides WooCommerce to solve the problem with geolocation and cache. You are right,it is not a URL SEO friendly. It is not the best but it’s a solution.

    a) Country switcher included in my plugin send country via POST. For this reason no GET param is added to url.
    b) It’s possible that the server show a cache page and ignore data store in session.
    c) I’m sorry. I can’t help you in this.

    My plugin delegates the task of geolocation in WooCommerce (DRY). You can check documentation of W3Total Cache and WooCommerce or open thread in support forums of this plugins,They can help you better than I.

    Best regards,
    Oscar.

    Thread Starter artbylena

    (@artbylena)

    Thank you very much Oscar for your prompt replies.

    — Lena

    P.S. POST creates another annoyance: a popup when trying to refresh a page… I wish that was the only problem ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to deal with cache? First visitor saves the page with their currency.’ is closed to new replies.