• Resolved raindeer2

    (@raindeer2)


    We get constant cache misses when using Litespeed and WPML Woocommerce Multicurrency (WCML)

    If I comment out the vary that is set for wcml_currency in wcml.cls.php then I start to get hits, but no vary on the currency ofc.

    We use WPML Woocommerce Multicurrency with Geo lookup to set the user currency. If we remove the geo lookup then it seems to be working. My suspicion is that there is a problem with WCML and geo lookup.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter raindeer2

    (@raindeer2)

    I can add that it is the first request of a session to a page that is missed, consecutive requests by the same browser session are hits.

    Hence, the cache check tool reports constant miss:
    https://check.lscache.io/?host=https%3A%2F%2Fflowneuroscience.com%2F

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please provide the report number , you can get it in toolbox -> report -> click “send to LiteSpeed”

    Best regards,

    Thread Starter raindeer2

    (@raindeer2)

    GZCMTMBG

    Plugin Support qtwrk

    (@qtwrk)

    Could you please try add this rule at top of your .htaccess ?

    RewriteRule .* - [E=Cache-Vary:wp-wpml_current_language]

    purge all , and check same page few times , see cache status.

    Thread Starter raindeer2

    (@raindeer2)

    Thanks!

    We tried this and made no difference.

    As I mentioned initially I think it is related to WCML not WPML.

    If I comment out:

    $list[ 'wcml_currency' ] = self::$_currency;

    in wcml.cls.php then it works, but I lose the vary on the currency.

    • This reply was modified 3 years, 4 months ago by raindeer2.
    Plugin Support qtwrk

    (@qtwrk)

    what if you keep that line commented out , but also use my rule ,

    how will that work ?

    Thread Starter raindeer2

    (@raindeer2)

    We will test this, but note that your rule seems to make it vary on language, not currency. Language is not the problem. We have different URLs for different languages.

    • This reply was modified 3 years, 4 months ago by raindeer2.
    Thread Starter raindeer2

    (@raindeer2)

    We still have the same problem.
    There is some issue with varying on currency while having geo lookup of currency enabled in WCML

    • This reply was modified 3 years, 4 months ago by raindeer2.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please create a ticket by mail to support at litespeedtech.com with reference link to this topic , we will investigate further

    Best regards,

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WooCommerce Multicurrency constant miss’ is closed to new replies.