Home Forums Plugins CURCY – WooCommerce Multi Currency Cache Preloading for Multi-Currency Setup

Cache Preloading for Multi-Currency Setup

  • Author
    Posts
  • #228373

    Marcos Arias
    Participant

    I’m configuring WP Rocket, I want to preload the cache for each currency variation using the wmc_current_currency cookie so that users experience fast load times when switching currencies.

    I’ve noticed that every time a user changes the currency, the wmc_current_currency_old cookie is also generated, which seems to store the previous currency.

    My questions are:
    Does the value of wmc_current_currency_old actually affect the page content, or is it just internal data for currency switching?
    To ensure fast loading, is it enough to preload the cache with wmc_current_currency, or should I also include wmc_current_currency_old?

    I want to avoid storing unnecessary cache while making sure each currency has its correctly preloaded version to improve performance.

    I need to configure it with this plugin: https://github.com/wp-media/wp-rocket-helpers/blob/master/preload/wp-rocket-preload-dynamic-cookies/wp-rocket-preload-dynamic-cookies.php

    Thanks.

    Regards,

    Marcos

You must be logged in to see replies to this topic. Click here to login or register