Skip to main content
KadiCache
Commerce & Pulse MCPFree Core

WooCommerce, Multi-Currency & 8-Language Cache

Purpose-built for high-revenue international WooCommerce stores: hashed currency & language cache partitioning, native PayPal FraudNet/Apple Pay/Stripe/Square wallet isolation, and pre-Delay wishlist counter refreshes.

Langs · Wallets · Wishlists
8 + 8 + 6
Verified Source Entry
apps/wordpress-plugin/src/Integrations/Plugins/WooCommerce/CartFragmentQualification.php
Verified Engine Capabilities

Engineered for zero regressions.

  • 8 Multilingual engines: WPML, Polylang, TranslatePress, Weglot, Bogo, qTranslate, WP Multilang, Universally
  • Multi-currency bounded key hashing for CURCY, FOX, WCML, and Aelia (raw cookies never in filenames)
  • 8 Wallets guarded: PayPal FraudNet 32-hex session isolation, Mollie Apple Pay, Stripe, Square, Revolut, Airwallex, FunnelKit
  • 6 Wishlists (WPC, YITH, TI, WCBoost, QODE, MoreConvert) refresh counters safely before Delay JS
Verified WooCommerce Session, Currency & Cart Diagnostics
$ wp kadicache diagnose https://example.com/shop/ --format=json
# Reports X-KadiCache, X-KadiCache-Reason, active multilingual provider,
# currency variant bucket, and WooCommerce session/cart eligibility
Inside the KadiCache WordPress Plugin

WooCommerce, Multi-Currency & 8-Language Cache — Plugin Interface

5 live 2x Retina plugin screens
WP Admin -> KadiCache -> WooCommerce
MODULE 12 · 2X RETINA
Dedicated WooCommerce tab centralizes Smart Cart Fragments, Native Mini-Cart, Shopper JS controls, and automatic express-wallet & checkout safeguards.2880×1840 WebP
100% Source-Code Verified10 min engineering readUpdated 2026-11-23
Executive Summary · 30-Second SpecZero-Regressions Spec
WP Admin Path
WP Admin -> KadiCache -> CSS & JavaScript (Commerce) + Tools
Measured Impact
Zero Session Bleed · 8 Wallets · 6 Wishlists · 8+ Languages
Verification Marker
X-KadiCache-Reason | kadicache_cart | wc-cart-fragments
  • Eliminates uncached ?wc-ajax=get_refreshed_fragments requests for empty-cart visitors via WooCommerceCartFragments (Smart mode + non-secret kadicache_cart hint cookie).
  • Distinguishes empty default wp_woocommerce_session_<HASH> cookies from populated carts, geolocation taxes, and customer-specific pricing via WooCommerceSession::emptyNewSession().
  • Isolates multi-currency buckets (CURCY, FOX / WOOCS, WCML, WooPayments, Price Based on Country) and 8 multilingual engines (WPML, Polylang, TranslatePress, Weglot, MultilingualPress, qTranslate-XT, WP Multilang, Universally).
  • Protects 8 Express Payment Wallets (PayPal PPCP kadicache_ppcp_fn, Stripe, Mollie Apple Pay, Square, Revolut, FunnelKit, Airwallex, EasyPayment) and 6 Wishlist plugins.
Table of Contents (5 sections)

Why Generic WordPress Cache Plugins Break Live WooCommerce Stores#

Caching a static blog is forgiving; caching a multi-currency, multilingual WooCommerce store with Apple Pay buttons, dynamic tax geolocation, wishlists, and AJAX mini-carts is where generic caching plugins cause expensive production incidents:

  • The ?wc-ajax=get_refreshed_fragments Bottleneck: Out of the box, WooCommerce fires an uncached AJAX POST to /?wc-ajax=get_refreshed_fragments on every public page load—even when 94% of browsing visitors have an empty cart. That single request boots full WordPress + WooCommerce in the background, stalling mobile main threads and saturating PHP-FPM workers during ad campaigns. Yet blindly dequeuing wc-cart-fragments (as many "bloat remover" snippets recommend) freezes header cart counters across pages!
  • Session & Currency Bleed: If a plugin caches HTML while WCPay\MultiCurrency, FOX, CURCY, or geolocation tax display (woocommerce_default_customer_address = geolocation) stores currency or VAT state inside an opaque wp_woocommerce_session_* row rather than a distinct variant cookie, European shoppers suddenly see USD prices—or worse, another customer's tax calculation.
  • Broken Express Checkout Buttons & Wishlists: PayPal (woocommerce-paypal-payments), Stripe Payment Request, Apple Pay, Revolut, and YITH / TI Wishlists inject dynamic client tokens, nonces, or personalized heart states that either silently fail under aggressive Delay JS or poison shared HTML snapshots.

KadiCache treats WooCommerce and multilingual routing as first-class citizens inside 100% Free Core, backed by over 35 dedicated integration classes in src/Integrations/Plugins/ and src/Integrations/Multilingual/.

WooCommerceCartFragments.php: Smart Mode & Native Mini-Cart Support#

Inside WP Admin -> KadiCache -> CSS & JavaScript -> Commerce & Smart Cart, KadiCache gives store owners three explicit modes (cart_fragments_mode) rather than a blunt on/off toggle:

  1. Smart · Recommended: WooCommerceCartFragments injects lightweight browser gate scripts (cart-session.js and cart-fragments.js) paired with a readable, non-secret expiry timestamp cookie (kadicache_cart) synchronized on woocommerce_set_cart_cookies, woocommerce_cart_emptied, woocommerce_cart_item_removed, and WooCommerce Store API (rest_post_dispatch) mutations. Visitors browsing with an empty cart fire zero ?wc-ajax=get_refreshed_fragments requests; the instant a shopper adds an item to their cart, live fragment synchronization wakes up automatically and clears kadicache_cart again if the cart is emptied.
  2. Original: Retains WooCommerce's native fragment refresh on every load (and automatically excludes wc-cart-fragments-js from Delay JS when Keep delaying scripts for shoppers is enabled so header counters update immediately).
  3. Off: Dequeues wc-cart-fragments completely on stores whose themes have no header mini-cart widget at all.

For modern Gutenberg block themes using the woocommerce/mini-cart Interactivity/React block, Native Mini-Cart Cache Support (WooCommerceMiniCartBlock.php) qualifies declared cart counter selectors so even shoppers carrying active carts can continue receiving fast cached product and category pages safely.

WooCommerceSession.php: Deep Session, Tax & Multi-Currency Verification#

Not every wp_woocommerce_session_<COOKIEHASH> cookie means a visitor has items in their cart—extensions frequently initialize an empty guest session on landing. Conversely, an empty cart does not always mean a session is safe to serve from a shared cache!

FIG 01Managing variant cookies, bypass cookies, and ignored marketing parameters inside WP Admin -> KadiCache -> ToolsZoom 2x

Multi-Currency, 8 Multilingual Engines, 8 Express Wallets & 6 Wishlists#

KadiCache coordinates variant hashing, targeted stock invalidation (CommerceStockTracker.php), and translation-group purges (TranslationGroupCapture.php) out of the box without manual regex rules:

Integration LayerVerified Plugins & Providers in Source CodeHow KadiCache Protects Your Store
Private Commerce RoutesWooCommerce, Easy Digital Downloads, SureCart, MemberPress, LearnDash (PrivateCommerceRoutes.php, MembershipLmsRoutes.php)Hard-bypasses cart, checkout, account, order-pay, thank-you, and LMS lesson endpoints in both Early and Late paths
Multi-Currency BucketsCURCY (VillaTheme), FOX / WOOCS, WCML (WcmlCookieRenewal), WooPayments, Price Based on CountryHashes active currency cookies into isolated cache variants and pauses Early serving during curcy_currency_transition
8 Multilingual ProvidersWPML, Polylang, TranslatePress, Weglot, MultilingualPress, qTranslate-XT, WP Multilang, UniversallyIsolates subdirectory, subdomain, separate-domain, and cookie/query language routes; purges linked translations when stock or prices change
8 Express Payment WalletsOfficial PayPal (OfficialPaypal / kadicache_ppcp_fn), Stripe (ThemehighStripe), MollieApplePay, SquareWallet, RevolutExpress, FunnelkitWallet, AirwallexWallet, EasypaymentPaypalProtects wallet SDK initialization, fraudnet/client tokens, and product-page express checkout buttons from cache or script breakage
6 Wishlist EnginesYithWishlist, TiWishlist, WpcWishlist, MoreconvertWishlist (MoreconvertNonce), WcboostWishlist, QodeWishlistPrevents personalized wishlist counters/nonces from leaking into shared guest HTML (WishlistReuse.php) and excludes wishlist action URLs from prefetch
Stock-Change InvalidationCommerceStockTracker.php + PurgeTargetResolver.phpPurges only the affected product, parent variable product, and assigned category/shop archives when inventory hits out-of-stock—leaving unrelated products warm

For stores running bespoke ERP or B2B wholesale plugins, WP Admin -> KadiCache -> Tools -> Cookies & Query Rules exposes granular drawers for Never cache with these cookies, Cache variant cookies (creating isolated cache files per cookie value, such as b2b_tier=gold), Cache query strings, and Ignored query parameters:

BASHVerify Guest vs Active-Cart Cache Headers via curl & WP-CLI
# 1. Anonymous guest visit to a WooCommerce product -> X-KadiCache: HIT (14ms)
curl -sI https://example.com/product/chronograph-titanium/ | grep -i "^x-kadicache"

# 2. Simulate active cart cookie -> deterministic policy response with exact reason
curl -sI -H "Cookie: woocommerce_items_in_cart=1" https://example.com/product/chronograph-titanium/ | grep -i "^x-kadicache"

# 3. Full WP-CLI diagnostic report on any shop or translated URL
wp kadicache diagnose https://example.com/shop/ --format=json
Gergis — Lead Systems & Cache Architect
Principal WordPress & Cloud Edge Architect
E-E-A-T Source Verified

Creator of KadiCache’s Early PHP Drop-In, 7-Driver Object Cache Engine, Cloud Remove Unused CSS, and Zero-CLS Lazy Render pipeline.

apps/wordpress-plugin/src/Integrations/Plugins/WooCommerceSession.phpapps/wordpress-plugin/src/Integrations/Plugins/WooCommerceCartFragments.phpapps/wordpress-plugin/src/Integrations/Plugins/WooCommerceMiniCartBlock.phpapps/wordpress-plugin/src/Integrations/Plugins/PrivateCommerceRoutes.phpapps/wordpress-plugin/src/Cache/Invalidation/Multilingual/TranslationGroupCapture.php

Technical FAQ

Why is KadiCache Smart Cart Fragments safer than disabling wc-cart-fragments completely?

Disabling wc-cart-fragments outright leaves header cart badges stuck at 0 whenever a shopper navigates back to a cached page. Smart mode skips the expensive ?wc-ajax=get_refreshed_fragments request only while the cart is empty and automatically activates live fragment sync via the non-secret kadicache_cart hint cookie the moment an item enters the cart.

Does KadiCache cache /cart/, /checkout/, or /my-account/ pages?

Never. PrivateCommerceRoutes and MembershipLmsRoutes automatically detect WooCommerce, Easy Digital Downloads, SureCart, MemberPress, and LearnDash private endpoints—even when slugs are translated or customized—and exclude them from both Page Caching and Instant Links prefetching.

How are multi-currency plugins like CURCY and FOX (WOOCS) handled without showing the wrong currency?

KadiCache hashes recognized currency cookies into separate cache variant files per currency (or bypasses shared Early lookup when currency state lives exclusively inside an opaque PHP/WooCommerce session), ensuring EUR, GBP, SAR, and USD shoppers never see cross-contaminated prices.

Will Express Checkout buttons (Apple Pay, Google Pay, PayPal PPCP, Stripe, Revolut) break on product pages?

No. Dedicated integration modules (OfficialPaypal, ThemehighStripe, MollieApplePay, SquareWallet, RevolutExpress, FunnelkitWallet, AirwallexWallet, EasypaymentPaypal) guard wallet SDK handles, client tokens, and kadicache_ppcp_fn session state automatically.

What happens when a WooCommerce product goes out of stock?

CommerceStockTracker listens to inventory state changes and purges only the affected product URL, its parent variable product, its translated equivalents, and its immediate shop/category archive pages—preserving cache hits across the rest of your catalog.

Which multilingual WordPress plugins work out of the box?

ProviderRegistry supports WPML, Polylang (including Polylang Pro separate domains and cookie language detection), TranslatePress, Weglot, MultilingualPress, qTranslate-XT, WP Multilang, and Universally across subdirectory, subdomain, and multi-domain setups.

Does KadiCache support WooCommerce High-Performance Order Storage (HPOS)?

Yes. KadiCache never queries legacy wp_posts order rows directly; all cart, session, stock, and speed-column integrations operate through native WooCommerce CRUD, session, and hook contracts compatible with HPOS.