WooCommerce Carts, Checkouts, 8 Express Wallets & 6 Wishlists
Protect WooCommerce sessions, carts, checkouts, Smart Cart Fragments, 8 express payment wallets (PayPal FraudNet, Apple Pay, Stripe, Square, Revolut), and 6 wishlist counters.
- Distinguishes empty browsing sessions from populated carts, customer notices, tax/shipping addresses, and private discounts (
WooCommerceSession.php) so window-shoppers get~14 msEarly HITs while active carts stay 100% private. - Smart Cart Fragments (
WooCommerceCartFragments.php+WooCommerceMiniCartBlock.php): Eliminates uncached/?wc-ajax=get_refreshed_fragmentsblocking calls for empty-cart guests while keeping Classic & Block Mini-Carts live once an item is added. - Built-in safeguards for 8 Express Payment Wallets (including per-browser
kadicache_ppcp_fnPayPal FraudNet isolation) and 6 Wishlist Plugins (YITH,TI,WPC,MoreConvert,WCBoost,QODE). - Surgical stock & price invalidation purges affected product and archive URLs automatically when inventory changes or orders complete.
Solving the #1 Fear of WooCommerce Store Owners: Speed Without Cart Bleed#
Every WooCommerce merchant has heard horror stories of aggressive caching plugins showing Customer A’s shipping address inside Customer B’s checkout, freezing the header mini-cart counter at 0, or breaking Apple Pay and PayPal Express buttons on product pages.
At the opposite extreme, naive stores turn caching off whenever wp_woocommerce_session_* appears—causing 70%+ of browsing shoppers to miss cache even when their cart is completely empty! KadiCache Free Core (WooCommerceSession.php, PrivateCommerceRoutes.php, WooCommerceCartFragments.php, and 14 dedicated wallet/wishlist integrations) engineers surgical eCommerce safety out of the box.
Four-Layer Session, Route & Tax Protection (WooCommerceSession.php)#
- Automatic Private Route Isolation (
PrivateCommerceRoutes.php): Dynamic WooCommerce/cart/,/checkout/,/my-account/, order-pay, Easy Digital Downloads checkout, and membership/LMS account endpoints are detected dynamically via WordPress page IDs and rewrite rules (across every translated slug!) and never enter shared public cache. - Active Cart & Notice Bypass (
WooCommerceSession::isPrivate()): As soon aswoocommerce_items_in_cart(non-zero) orwoocommerce_cart_hashis set—orWC()->sessionholdswc_notices—Early Delivery immediately returnsX-KadiCache: BYPASS(X-KadiCache-Reason: bypass_cookie) so personalized cart totals and notices stay strictly per-shopper. - Empty Session Verification (
WooCommerceSession::emptyNewSession()): If a plugin initializes an empty defaultWC_Session_Handlerrow with$0.00totals, default customer location (WC_Customer_Data_Store_Session::is_default_customer_data()), and zero coupons, KadiCache verifies it mathematically so window-shoppers continue receiving fast cached catalog pages! - Geolocation Tax & Dynamic Discount Guards (
WooCommerceSession::sharedLookupRisk()): Automatically detects tax-inclusive geolocation pricing (woocommerce_default_customer_address = geolocation), customer-address tax calculation (woo_session_tax), Price Based on Country (WCPBC), and session-boundDiscountRules.phpso customer-specific prices can never leak into shared HTML.
Taming wc-ajax=get_refreshed_fragments & Gutenberg Mini-Cart Blocks#
By default, WooCommerce fires an uncached POST /?wc-ajax=get_refreshed_fragments request on every single pageview, adding 450 – 1,400 ms to mobile load even when 92% of visitors have 0 items in their cart:
- Smart Cart Fragments (
WooCommerceCartFragments.php): Skips the expensive network AJAX call for empty-cart guests while automatically syncing the header cart badge the instant a shopper clicks Add to Cart or carrieswoocommerce_items_in_cart. - WooCommerce Block Mini-Cart (
WooCommerceMiniCartBlock.php): Supports modern Gutenberg Interactivity API / React<div class="wc-block-mini-cart">drawers cleanly alongside classic jQuery theme carts.
Built-In Support for 8 Express Payment Wallets & Meta CAPI Safety#
Express checkout buttons on /product/* pages embed gateway tokens, client nonces, or fraud-prevention identifiers that break if shared blindly across guests. KadiCache includes dedicated Free Core integrations for 8 payment gateways plus Meta for WooCommerce:
| Express Gateway / Integration | Free Core Guard (src/Integrations/Plugins/) | What KadiCache Protects Automatically |
|---|---|---|
WooCommerce PayPal Payments (PPCP) | OfficialPaypal.php | Isolates per-browser FraudNet tokens (kadicache_ppcp_fn) & recognizes safe public guest nonces |
| EasyPayment PayPal | EasypaymentPaypal.php | Protects PayPal smart button session state on product templates |
| FunnelKit Stripe Payment Gateway | FunnelkitWallet.php | Preserves Apple Pay / Google Pay / Express Checkout payment request data |
| ThemeHigh Stripe | ThemehighStripe.php | Safeguards Stripe express button initialization & nonces |
| WooCommerce Square | SquareWallet.php | Protects Square Digital Wallet (Apple Pay / Google Pay) product buttons |
| Mollie Payments (Apple Pay) | MollieApplePay.php | Keeps Mollie Apple Pay direct product buttons functional on cached pages |
| Revolut Gateway for WooCommerce | RevolutExpress.php | Protects Revolut Pay / Express checkout tokens |
| Airwallex Express Checkout | AirwallexWallet.php | Safeguards Airwallex Apple Pay / Google Pay express flows |
Meta for WooCommerce (Pixel + CAPI) | MetaForWooCommerce.php | Prevents duplicate ViewContent eventID caching so Meta CAPI deduplication stays accurate! |
Zero-Stale Badges Across 6 Popular WooCommerce Wishlist Plugins (WishlistReuse.php)#
KadiCache also includes native compatibility for 6 major wishlist plugins—keeping product grids cacheable while syncing wishlist heart icons and header counters cleanly:
- YITH WooCommerce Wishlist (
YithWishlist.php) - TI WooCommerce Wishlist (
TiWishlist.php) - WPC Smart Wishlist for WooCommerce (
WpcWishlist.php) - MoreConvert (
MC) WooCommerce Wishlist (MoreconvertWishlist.php+MoreconvertNonce.php) - WCBoost – Products Wishlist (
WcboostWishlist.php) - QODE Wishlist for WooCommerce (
QodeWishlist.php)
Flash Sales, Black Friday Traffic & High-Concurrency Checkout Tips#
When running paid social drops or seasonal flash sales where 500 shoppers hit /product/* simultaneously, combine three Free Core controls for rock-solid origin stability:
- Enable Early PHP Delivery + Soft Purge (
CacheTab): Keeps product and category pages serving in~14 ms(0SQL queries), while 60-second Soft Purge prevents inventory updates from causing MySQL stampedes. - Enable Persistent Object Cache (
Object CacheTab): Once shoppers add items to their cart and hit dynamic/cart/and/checkout/queries,Relay/PhpRedis/APCu+Split Alloptionscuts checkout PHP execution time by45% to 70%. - Enable Content Priority (
PreloadTab): Drag Products and Product Categories to the top of yourContent Prioritylist (Sitemap Preload Guide) so revenue-generating pages warm first after every catalog update.
Frequently Asked Operational Questions
Is KadiCache 100% compatible with WooCommerce High-Performance Order Storage (HPOS / Custom Order Tables)?
What happens when the last unit of a product sells out at checkout?
Why does KadiCache have a dedicated integration for Meta for WooCommerce?
Should I enable Keep Delaying JS for Active Shoppers?
Do I need to add /cart/ or /checkout/ to Excluded Paths manually—what if my checkout slug is /kasse/ or /paiement/?
Creator of KadiCache’s Early PHP Drop-In, 7-Driver Object Cache Engine, Cloud Remove Unused CSS, and Zero-CLS Lazy Render pipeline.