{"id":135262,"date":"2022-09-13T16:27:38","date_gmt":"2022-09-13T21:27:38","guid":{"rendered":"https:\/\/wpengine.com\/?p=135262"},"modified":"2025-05-14T13:31:16","modified_gmt":"2025-05-14T18:31:16","slug":"solving-cart-fragment-dilemma-introducing-live-cart","status":"publish","type":"post","link":"https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/","title":{"rendered":"Solving the Cart Fragment Dilemma Once and For All: Introducing Live Cart"},"content":{"rendered":"\n<p><a href=\"https:\/\/wpengine.com\/support\/how-to-disable-cart-fragments-for-woocommerce\/\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce Cart Fragments<\/a> have long presented a dilemma for eCommerce websites.&nbsp;<\/p>\n\n\n\n<p>On one hand, Cart Fragments provide needed cart functionality, including the critical \u201cadd to cart\u201d action your customers use when selecting an item on your site. <\/p>\n\n\n\n<p>On the other hand, Cart Fragments are AJAX requests that can quickly pile up, slow your site down, and ultimately cost you customers.&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p>Because of the complexity associated with the Cart Fragments script, disabling Cart Fragments altogether has historically been a common approach for solving this problem, even though many sites rely on the use of some Cart Fragments to maintain their shopping cart functionality.&nbsp;<\/p>\n\n\n\n<p>This all-or-nothing approach has left many WooCommerce users faced with a difficult dilemma, forcing them to choose between cart functionality and site stability and speed. That is, until now.&nbsp;<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator aligncenter has-alpha-channel-opacity\"\/>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Introducing WP Engine Live Cart<\/h2>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2022\/09\/cart-no-shadow.gif\" alt=\"\" class=\"wp-image-135268\"\/><\/figure>\n\n\n\n<p>To remedy the challenge of managing Cart Fragments, WP Engine is excited to announce the launch of <a href=\"https:\/\/www.google.com\/url?q=https:\/\/wpengine.com\/support\/how-to-disable-cart-fragments-for-woocommerce\/%23Option_2_Enable_Live_Cart&amp;sa=D&amp;source=docs&amp;ust=1663104873315825&amp;usg=AOvVaw2fguaf-0ekM3NPkwmiTo4X\" target=\"_blank\" rel=\"noreferrer noopener\">Live Cart<\/a>, a proprietary performance&nbsp;feature now available with WP Engine&#8217;s eCommerce hosting plans that optimizes the WooCommerce Cart Fragments requests that make your cart dynamic, so they only run when they\u2019re needed. <\/p>\n\n\n\n<p>Check out the video below for more:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-wistia-inc wp-block-embed-wistia-inc\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"cart-fragments-final Video\" src=\"https:\/\/fast.wistia.net\/embed\/iframe\/tosc56r5rv?dnt=1\" allow=\"autoplay; fullscreen\" allowtransparency=\"true\" frameborder=\"0\" scrolling=\"no\" class=\"wistia_embed\" name=\"wistia_embed\" msallowfullscreen width=\"960\" height=\"540\"><\/iframe><script src=\"https:\/\/fast.wistia.net\/assets\/external\/E-v1.js\" async><\/script>\n<\/div><\/figure>\n\n\n\n<p>Say goodbye to sacrificing cart functionality for stability and speed! Live Cart makes real-time updates to each visitor\u2019s cart, without dragging down performance.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator aligncenter has-alpha-channel-opacity\"\/>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Wait, What Exactly Are Cart Fragments?<\/h2>\n\n\n\n<p>Because they operate behind the scenes (and often assist with ubiquitous cart functions), Cart Fragments can fly under the radar when you\u2019re assessing the performance of your site.&nbsp;<\/p>\n\n\n\n<p>That said, top page performance testing tools such as <a href=\"https:\/\/pagespeed.web.dev\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google PageSpeed Insights<\/a>, <a href=\"https:\/\/www.pingdom.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Pingdom<\/a>, and <a href=\"https:\/\/gtmetrix.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">GTMetrix<\/a> regularly highlight Cart Fragments requests as the source of page speed delays.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"573\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-13-at-1.54.02-PM-1024x573.png\" alt=\"\" class=\"wp-image-135263\" srcset=\"https:\/\/wpengine.com\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-13-at-1.54.02-PM-1024x573.png 1024w, https:\/\/wpengine.com\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-13-at-1.54.02-PM-540x302.png 540w, https:\/\/wpengine.com\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-13-at-1.54.02-PM-768x430.png 768w, https:\/\/wpengine.com\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-13-at-1.54.02-PM-1536x860.png 1536w, https:\/\/wpengine.com\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-13-at-1.54.02-PM-2048x1147.png 2048w, https:\/\/wpengine.com\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-13-at-1.54.02-PM-1500x840.png 1500w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><em><sub>Although WooCommerce Cart Fragments are often relied on for important eCommerce cart functions, they can also slow down the rest of your site when not managed properly<\/sub><\/em><\/figcaption><\/figure>\n\n\n\n<p>Cart Fragments can be particularly thorny when it comes to site stability during high-traffic events, even when that\u2019s 50 or more concurrent shoppers.<\/p>\n\n\n\n<p>But that\u2019s mainly because without any optimization, Cart Fragments requests are made all the time, even when completely unnecessary, including on pages without the add-to-cart functionality, like an About Us page or a blog post.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator aligncenter has-alpha-channel-opacity\"\/>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">How Does Live Cart Improve Performance?<\/h2>\n\n\n\n<p>As noted above, the complexity of the Cart Fragments script has typically led to one of two approaches:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Using Cart Fragments to keep carts up to date but sacrificing the speed of other pages.<\/li>\n\n\n\n<li>Disabling Cart Fragments to speed up your pages but leaving your cart widgets with stale and incorrect data (e.g., the wrong count of the products in the cart, the wrong total, or products not appearing to be added to the cart).<\/li>\n<\/ul>\n\n\n\n<p>Neither choice is ideal, and to finally provide a middle ground, WP Engine Live Cart leverages caching to keep cart data accurate while eliminating the extra calls on pages that aren\u2019t using the cart.<\/p>\n\n\n\n<p>This provides you with the best of both worlds\u2014page speed AND dynamic cart functionality for a higher number of concurrent users!<\/p>\n\n\n\n<p>Built into all <a href=\"https:\/\/wpengine.com\/woocommerce\/\">WP Engine eCommerce plans<\/a>, Live Cart eliminates the Cart Fragment AJAX call from occurring at unnecessary times, and improves the scalability of the cart and page speed across your entire site without losing dynamic cart functionality.\u00a0<\/p>\n\n\n\n<p>The biggest benefit is seen when items are added to a cart during high-traffic events, like a special promotion or a sales event like Black Friday. When a customer adds an item to the cart, Live Cart loads pages 1.5 seconds faster (on average) than the default Cart Fragments script and helps keep your site from dropping connections under continuous load.&nbsp;<\/p>\n\n\n\n<p>Live Cart is not only a great way to speed up your eCommerce site, but it makes the server more stable and responsive during peak traffic.<\/p>\n\n\n\n<p><strong><em>Want to find out more? <\/em><\/strong><em><strong><a href=\"https:\/\/wpengine.com\/woocommerce\/\">Visit WP Engine<\/a><\/strong><\/em><strong><em> to learn about all of the powerful features included in our eCommerce hosting plans, or <a href=\"#sales\">speak to a representative now<\/a> to enable Live Cart on your eCommerce site!<\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WooCommerce Cart Fragments have long presented a dilemma for eCommerce websites.&nbsp; On one hand, Cart Fragments provide needed cart functionality, including the critical \u201cadd to cart\u201d action your customers use when selecting an item on your site. On the other hand, Cart Fragments are AJAX requests that can quickly pile up, slow your site down,<span class=\"tile__ellipses\">&hellip;<\/span><span class=\"tile__ellipses--animated\"><\/span><\/p>\n","protected":false},"author":200,"featured_media":135290,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[82,1],"tags":[],"class_list":["post-135262","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ecommerce","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Solving the Cart Fragment Dilemma: Introducing WP Engine Live Cart<\/title>\n<meta name=\"description\" content=\"Live Cart, which is now available with all WP Engine eCommerce plans, optimizes WooCommerce Cart Fragments requests so they only run when needed.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Solving the Cart Fragment Dilemma: Introducing WP Engine Live Cart\" \/>\n<meta property=\"og:description\" content=\"Live Cart, which is now available with all WP Engine eCommerce plans, optimizes WooCommerce Cart Fragments requests so they only run when needed.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Engine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpengine\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-13T21:27:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-14T18:31:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpengine.com\/wp-content\/uploads\/2022\/09\/Live-Cart-New.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"627\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Abe Selig\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wpengine\" \/>\n<meta name=\"twitter:site\" content=\"@wpengine\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abe Selig\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/\",\"url\":\"https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/\",\"name\":\"Solving the Cart Fragment Dilemma: Introducing WP Engine Live Cart\",\"isPartOf\":{\"@id\":\"https:\/\/wpengine.com\/#website\"},\"datePublished\":\"2022-09-13T21:27:38+00:00\",\"dateModified\":\"2025-05-14T18:31:16+00:00\",\"author\":{\"@id\":\"https:\/\/wpengine.com\/#\/schema\/person\/7af5af2afeaf4a861319f5c18bcddcab\"},\"description\":\"Live Cart, which is now available with all WP Engine eCommerce plans, optimizes WooCommerce Cart Fragments requests so they only run when needed.\",\"breadcrumb\":{\"@id\":\"https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wpengine.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Solving the Cart Fragment Dilemma Once and For All: Introducing Live Cart\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpengine.com\/#website\",\"url\":\"https:\/\/wpengine.com\/\",\"name\":\"WP Engine\",\"description\":\"Managed Hosting for WordPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpengine.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wpengine.com\/#\/schema\/person\/7af5af2afeaf4a861319f5c18bcddcab\",\"name\":\"Abe Selig\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wpengine.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6deb04da8be57a16bed1b5ad7722572beaa7ed7292795763c9324d46b0ad9454?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6deb04da8be57a16bed1b5ad7722572beaa7ed7292795763c9324d46b0ad9454?s=96&d=mm&r=g\",\"caption\":\"Abe Selig\"},\"description\":\"Abe Selig is a writer, amateur musician and accomplished inshore fisherman. He began his career as a journalist and now tells stories about technology and the ways it\u2019s helping businesses thrive. He is an Austin, TX native who has lived in New York City and traveled all around the world. You can reach him at abe.selig@wpengine.com.\",\"url\":\"https:\/\/wpengine.com\/blog\/author\/abes\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Solving the Cart Fragment Dilemma: Introducing WP Engine Live Cart","description":"Live Cart, which is now available with all WP Engine eCommerce plans, optimizes WooCommerce Cart Fragments requests so they only run when needed.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/","og_locale":"en_US","og_type":"article","og_title":"Solving the Cart Fragment Dilemma: Introducing WP Engine Live Cart","og_description":"Live Cart, which is now available with all WP Engine eCommerce plans, optimizes WooCommerce Cart Fragments requests so they only run when needed.","og_url":"https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/","og_site_name":"WP Engine","article_publisher":"https:\/\/www.facebook.com\/wpengine","article_published_time":"2022-09-13T21:27:38+00:00","article_modified_time":"2025-05-14T18:31:16+00:00","og_image":[{"width":1200,"height":627,"url":"https:\/\/wpengine.com\/wp-content\/uploads\/2022\/09\/Live-Cart-New.png","type":"image\/png"}],"author":"Abe Selig","twitter_card":"summary_large_image","twitter_creator":"@wpengine","twitter_site":"@wpengine","twitter_misc":{"Written by":"Abe Selig","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/","url":"https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/","name":"Solving the Cart Fragment Dilemma: Introducing WP Engine Live Cart","isPartOf":{"@id":"https:\/\/wpengine.com\/#website"},"datePublished":"2022-09-13T21:27:38+00:00","dateModified":"2025-05-14T18:31:16+00:00","author":{"@id":"https:\/\/wpengine.com\/#\/schema\/person\/7af5af2afeaf4a861319f5c18bcddcab"},"description":"Live Cart, which is now available with all WP Engine eCommerce plans, optimizes WooCommerce Cart Fragments requests so they only run when needed.","breadcrumb":{"@id":"https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpengine.com\/blog\/solving-cart-fragment-dilemma-introducing-live-cart\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpengine.com\/"},{"@type":"ListItem","position":2,"name":"Solving the Cart Fragment Dilemma Once and For All: Introducing Live Cart"}]},{"@type":"WebSite","@id":"https:\/\/wpengine.com\/#website","url":"https:\/\/wpengine.com\/","name":"WP Engine","description":"Managed Hosting for WordPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpengine.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wpengine.com\/#\/schema\/person\/7af5af2afeaf4a861319f5c18bcddcab","name":"Abe Selig","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpengine.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6deb04da8be57a16bed1b5ad7722572beaa7ed7292795763c9324d46b0ad9454?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6deb04da8be57a16bed1b5ad7722572beaa7ed7292795763c9324d46b0ad9454?s=96&d=mm&r=g","caption":"Abe Selig"},"description":"Abe Selig is a writer, amateur musician and accomplished inshore fisherman. He began his career as a journalist and now tells stories about technology and the ways it\u2019s helping businesses thrive. He is an Austin, TX native who has lived in New York City and traveled all around the world. You can reach him at abe.selig@wpengine.com.","url":"https:\/\/wpengine.com\/blog\/author\/abes\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/posts\/135262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/users\/200"}],"replies":[{"embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/comments?post=135262"}],"version-history":[{"count":0,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/posts\/135262\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/media\/135290"}],"wp:attachment":[{"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/media?parent=135262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/categories?post=135262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/tags?post=135262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}