• Resolved tempmagic

    (@tempmagic)


    Guys

    When enabling your litespeed plugin woocommerce wpml multicurrency doesn’t work… It basically gets stuck on just the default currency and will not change.

    How to fix this or what is the work around or how to exclude multicurrency from being cached?

    Thanks

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

    (@qtwrk)

    Hi,

    The multi-currency plugin relies on PHP session, in this case it doesn’t work with LSCWP because when cache is hit , it won’t hit PHP backend (which is essential point for caches)

    In this case, there is nothing we can do about it , only way is to ask currency author to make it cookie-based instead of PHP session-based vary.

    Best regards,

    Thread Starter tempmagic

    (@tempmagic)

    But it is a major plugin and built into woocommerce!

    Have you tried asking them or working together to resolve it?

    Is there no way to exclude it from the litespeed cache? You have all these exclusion options built into litespeed module but no way to exclude it from caching/dealing with the multicurrency?

    Plugin Support Cold Egg

    (@eric780217)

    Hi @tempmagic,

    Just want to confirm are you talking about this https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/ plugin?

    Our developers are currently busy with many high priority tasks. Improving multi-language compatibility with the WPML team is included. We may add multi-currency compatibility to to-do but no ETA. If you want it be fixed in a short time, please consider to contact WPML for support.

    We welcome you to join our slack https://goo.gl/FG9S4N wpcache channel to learn more our each plugin release’ feature improvement.

    Best,

    • This reply was modified 6 years, 6 months ago by Cold Egg.
    Plugin Support Cold Egg

    (@eric780217)

    Hi @tempmagic,

    I got WPML support and just test WPML multi-currency + LSCache on my woo testing site and tried adding this code
    add_filter( 'wcml_is_cache_enabled_for_switching_currency', '__return_true' ); into your theme-> functions.php. My cached product page with multi-currency now works fine.

    Could you test and let us know if it works to you?

    Best,

    Thread Starter tempmagic

    (@tempmagic)

    Hi @eric780217

    Thank you for that code snippet.

    It now works fine ??

    Did you notice the slight performance hit eg ~0.4s pageload speed delay and 0.1/0.2mb increase in page size via pingdom?

    Plugin Support Cold Egg

    (@eric780217)

    Hi @tempmagic,

    Could you enable developer tool from Chrome by (F12) and check response header shows cache hit?
    You can also check page loading time from the tool as well.

    I tried to compare both but seems no different. I may guess “0.4s pageload speed delay” is due to cache miss. Please use non-logged in user view the page, e.g. incognito page.

    Best,

    Thread Starter tempmagic

    (@tempmagic)

    Hi @eric780217

    I checked further and its negligible ??

    Thanks for your help ??

    Plugin Support Hai Zheng?

    (@hailite)

    Thanks for your feedback. We are closely working with WPML team on this plugin. And we just figured out a perfect solution for it.

    The compatibility improvement on our side will be in next week’s release. Hopefully multi-currency will deploy the changes too. Will update here when we get the confirmation from them.

    Thread Starter tempmagic

    (@tempmagic)

    @hailite

    Awesome!

    Also found an issue with another plugin which is a payments module with js that I have to exclude from minifying for it to work. blockonomics.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Multicurrency not working?’ is closed to new replies.