Implementing Page Fragment Cache for currencies
-
Hi,
I’m currently using the WooCommerce payment multi-currency switcher in conjunction with W3 Total Cache. However, it’s evident that caching and multi-currency functionality don’t integrate seamlessly. Following cache purges, the first cached page tends to be served to all users, which is to be expected.
To address this issue, I want to implement page fragment caching and exclude the price and currency functions from caching by wrapping them under the <mfunc>, as demonstrated here: Link to GitHub Page.
My question is, which PHP code, part of the plugin should I wrap with this function to make it work effectively? I of course have a child theme and the WooCommerce Payments plugin files ready for copying.
Thank you for your assistance!
- The topic ‘Implementing Page Fragment Cache for currencies’ is closed to new replies.