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,
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?
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 7 years, 9 months ago by
Cold Egg.
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,
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?
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,
Hi @eric780217
I checked further and its negligible 🙂
Thanks for your help 🙂
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.
@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.