Skip to main content

How to Enable Cache Warmup for Different Currencies via Dynamic Content Cookies

Updated yesterday

If your WooCommerce store serves customers worldwide and uses multi-currency plugins, you can optimize cache performance for international visitors by configuring Cache Warmup to recognize different currencies.

This ensures your international customers see the correct currency and experience faster loading times from their very first visit. This guide will show you how to set up multi-currency cache warmup using dynamic content cookies.

When This Feature Is Useful

This feature is essential for WooCommerce stores that serve customers in multiple countries and use multi-currency plugins to display localized pricing.

Without a multi-currency cache setup, your international customers may experience:

  • Visitors see wrong currency (e.g. USD instead of EUR/GBP/CAD)

  • Currency only switches after manual selection

  • Slower loading for international visitors

  • Cache misses requiring currency recalculation

  • Pricing confusion and potential cart abandonment

How Multi-Currency Cache Warmup Works

Cache Warmup can create separate cached versions of your pages for different currencies by:

  1. Recognizing currency cookies - Identifies which currency a visitor should see

  2. Using geolocation data - Matches IP addresses to appropriate currencies

  3. Creating currency-specific cache - Stores optimized versions for each currency

  4. Serving localized content - Delivers the right currency version instantly

How to Set Up Multi-Currency Cache Warmup

Step 1: Access Dynamic Content Cookies

  1. Navigate to the NitroPack App >> Cache Settings >> Cache

  2. Locate the Dynamic Content Cookies in the Cookies section.

Step 2: Add Your Currency Cookie

You need to manually add the cookie name that your multi-currency plugin uses. The cookie name varies depending on your plugin:

Supported Multi-Currency Plugin Cookies:

Step 3: Configure Cookie Values

The cookie values should match the currencies you support in your store. Common currency codes include:

  • USD - US Dollar

  • EUR - Euro

  • GBP - British Pound

  • CAD - Canadian Dollar

  • AUD - Australian Dollar

  • JPY - Japanese Yen

All of the aforementioned plugins use the ISO 4217 standard, you can find a full list of the currencies here.

Configuration Example:

Cookie Name: wmc_current_currency
Values: USD,EUR,GBP,CAD

Step 4: Save and Test

  1. Click Save Changes

  2. Purge your existing cache by navigating to Cache Settings >> Cache >> Cache Reset:
    ​

  3. Allow time for new cache versions to generate

  4. Test from different locations or using VPN

What Happens After Setup

Once configured, your international customers will experience:

  • Faster loading times - Pages load quickly with the correct currency

  • Immediate currency display - No waiting for currency detection or switching

  • Reduced confusion - Clear, localized pricing reduces cart abandonment

Troubleshooting

If currencies still appear incorrect:

  1. Verify the cookie name matches your plugin exactly

  2. Check that all currency codes are properly formatted (use standard 3-letter codes)

  3. Ensure your multi-currency plugin is active and configured

  4. Clear cache and allow few minutes for regeneration

If cache isn't generating for all currencies:

  1. Confirm cookie values match your store's supported currencies

  2. Test currency switching on your site to verify cookies are set

  3. Check that geolocation features are enabled in your currency plugin

  4. Verify Dynamic Content Cookies are saved correctly

Finding Cookie Information:

  1. Use browser developer tools (F12) β†’ Application/Storage β†’ Cookies

  2. Switch currencies on your site and observe which cookies change

  3. Check your multi-currency plugin's settings or documentation

  4. Contact your plugin developer for specific cookie details

Need Help?

Setting up support for multi-currency in cache warmup requires knowing your specific plugin's cookie configuration. If you need assistance identifying the correct cookie name or values for your multi-currency plugin, our support team can help you configure this feature properly.

Did this answer your question?