WOOCS




Wordpress LScache Plugin: WOOCS

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello I would like to solve a compatibility issue between https://wordpress.org/plugins/woocommerce-currency-switcher/ and your plugin The currency switching plugin has the functionality of redrawing cached prices in ajax mode. But the problem is that when your plugin is activated (caching enabled) product object returns incorrect price( $product->get_price_html() ) for example in USD even if this function get_woocommerce_currency() shows another currency for example EUR Is it possible to disable caching for a specific ajax request? ajax call is never cached , probably something else could you please provide the report number ? you can get it in toolbox -> report -> click send to LiteSpeed Hello, This incompatibility with the plugin corresponds to this other report: https://wordpress.org/support/topic/exclude-an-entire-directory-from-a-plugin/ Report number: DLCOWCXH Report Date: 03/11/2022 02:13:22 Thanks, since you have opened other topic for same issue , I will close this one then This topic was started by the plugin developer, for this reason if you want to close the other topic that I started earlier. It happens that the WOCS ? WooCommerce Currency Switcher plugin has an incompatibility with the LiteSpeed ??Cache cache and the developer wants to correct it. In the previous topic I suggested a solution but it is not valid since it is based on the Yaycurrency plugin which I have active on my website until this error is solved. Hello @CacheCrawler ajax call is never cached , probably something else ? I think about it too. But the fact is that the price is displayed regardless of the current currency. Perhaps you are using a transient for html prices (like woocommerce does for variations)? Hi @mediawebster , the cache plugin just stores/caches the PHP output , from my experience most issue in currency switcher plugin is like next request after switch it works , but after that when user goes to previous/other page , it shows the old currency again , because that previous/other pages were cached already with old currency and new currency is not set as PHP is not even triggered when cache is hit usually we expected the switcher to set a cookie in users browser , then cache engine can use it as check point to differentiate and acknowledge there is a certain change and needs PHP to regenerate the page Does it set any cookie ? please forgive my bluntness because I did not see currency change button on OPs site Best regards, Hello @CacheCrawler No, the plugin does not create cookies. , from my experience most issue in currency switcher plugin is like next request after switch it works , but after that when user goes to previous/other page , it shows the old currency again ? I have described the problem above- https://share.stackovergo.com/image/i20221117154921.png https://share.stackovergo.com/image/i20221117155243.png ? on this, compatibility of the currency switcher with caching plugins was developed. But unfortunately it stopped working recently (it worked correctly with your plugin and the ajax request sent the correct data). As I described in the first messange I am getting conflicting data ? https://share.stackovergo.com/image/i20221117155636.png ? Unfortunately, I dont know how your great plugin works, but it looks like the product object is cached and not created with new data (in the ajax request).



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference