{"id":1572,"date":"2023-06-28T20:23:33","date_gmt":"2023-06-28T20:23:33","guid":{"rendered":"https:\/\/www.darrenlambert.com\/?p=1572"},"modified":"2023-06-28T20:23:54","modified_gmt":"2023-06-28T20:23:54","slug":"fix-lightspeed-cache-woocommerce-caching-issues","status":"publish","type":"post","link":"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/","title":{"rendered":"Fix LightSpeed Cache + WooCommerce Caching Issues"},"content":{"rendered":"

If have any issues with LightSpeed Cache incorrectly caching WooCommerce data try this fix.<\/p>\n

Go to LightSpeed Cache > Cache > Excludes tab<\/p>\n

\"\"<\/p>\n

Under Do Not Cache Cookies, add:<\/p>\n

woocommerce_items_in_cart<\/pre>\n

\"\"<\/p>\n

Save this, then clear all caches.<\/p>\n

This solved a problem for me where the same product was being added twice, but with different attributes, and LightSpeed cache considered them the same product (making the quantity 2) rather than dealing with them as separate product lines.<\/p>\n","protected":false},"excerpt":{"rendered":"

If have any issues with LightSpeed Cache incorrectly caching WooCommerce data try this fix. Go to LightSpeed Cache > Cache > Excludes tab Under Do Not Cache Cookies, add: woocommerce_items_in_cart Save this, then clear all caches. This solved a problem for me where the same product was being added twice, but with different attributes, and …<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[],"yoast_head":"\nFix LightSpeed Cache + WooCommerce Caching Issues - Darren Lambert<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fix LightSpeed Cache + WooCommerce Caching Issues - Darren Lambert\" \/>\n<meta property=\"og:description\" content=\"If have any issues with LightSpeed Cache incorrectly caching WooCommerce data try this fix. Go to LightSpeed Cache > Cache > Excludes tab Under Do Not Cache Cookies, add: woocommerce_items_in_cart Save this, then clear all caches. This solved a problem for me where the same product was being added twice, but with different attributes, and …\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/\" \/>\n<meta property=\"og:site_name\" content=\"Darren Lambert\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-28T20:23:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-28T20:23:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.darrenlambert.com\/wp-content\/uploads\/2023\/06\/lightspeed-cache-excludes-1024x115.png\" \/>\n<meta name=\"author\" content=\"Darren\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Darren\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/\",\"url\":\"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/\",\"name\":\"Fix LightSpeed Cache + WooCommerce Caching Issues - Darren Lambert\",\"isPartOf\":{\"@id\":\"https:\/\/www.darrenlambert.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.darrenlambert.com\/wp-content\/uploads\/2023\/06\/lightspeed-cache-excludes-1024x115.png\",\"datePublished\":\"2023-06-28T20:23:33+00:00\",\"dateModified\":\"2023-06-28T20:23:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.darrenlambert.com\/#\/schema\/person\/ba3d82eb3f9925e946dae3b57e35bb79\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/#primaryimage\",\"url\":\"https:\/\/www.darrenlambert.com\/wp-content\/uploads\/2023\/06\/lightspeed-cache-excludes.png\",\"contentUrl\":\"https:\/\/www.darrenlambert.com\/wp-content\/uploads\/2023\/06\/lightspeed-cache-excludes.png\",\"width\":2126,\"height\":238},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.darrenlambert.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fix LightSpeed Cache + WooCommerce Caching Issues\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.darrenlambert.com\/#website\",\"url\":\"https:\/\/www.darrenlambert.com\/\",\"name\":\"Darren Lambert\",\"description\":\"WordPress & WooCommerce Expert\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.darrenlambert.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.darrenlambert.com\/#\/schema\/person\/ba3d82eb3f9925e946dae3b57e35bb79\",\"name\":\"Darren\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.darrenlambert.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/076d975a0d00c5b2d53e2f76076cf5cf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/076d975a0d00c5b2d53e2f76076cf5cf?s=96&d=mm&r=g\",\"caption\":\"Darren\"},\"url\":\"https:\/\/www.darrenlambert.com\/author\/darren\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fix LightSpeed Cache + WooCommerce Caching Issues - Darren Lambert","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:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/","og_locale":"en_US","og_type":"article","og_title":"Fix LightSpeed Cache + WooCommerce Caching Issues - Darren Lambert","og_description":"If have any issues with LightSpeed Cache incorrectly caching WooCommerce data try this fix. Go to LightSpeed Cache > Cache > Excludes tab Under Do Not Cache Cookies, add: woocommerce_items_in_cart Save this, then clear all caches. This solved a problem for me where the same product was being added twice, but with different attributes, and …","og_url":"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/","og_site_name":"Darren Lambert","article_published_time":"2023-06-28T20:23:33+00:00","article_modified_time":"2023-06-28T20:23:54+00:00","og_image":[{"url":"https:\/\/www.darrenlambert.com\/wp-content\/uploads\/2023\/06\/lightspeed-cache-excludes-1024x115.png"}],"author":"Darren","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Darren","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/","url":"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/","name":"Fix LightSpeed Cache + WooCommerce Caching Issues - Darren Lambert","isPartOf":{"@id":"https:\/\/www.darrenlambert.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/#primaryimage"},"image":{"@id":"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/#primaryimage"},"thumbnailUrl":"https:\/\/www.darrenlambert.com\/wp-content\/uploads\/2023\/06\/lightspeed-cache-excludes-1024x115.png","datePublished":"2023-06-28T20:23:33+00:00","dateModified":"2023-06-28T20:23:54+00:00","author":{"@id":"https:\/\/www.darrenlambert.com\/#\/schema\/person\/ba3d82eb3f9925e946dae3b57e35bb79"},"breadcrumb":{"@id":"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/#primaryimage","url":"https:\/\/www.darrenlambert.com\/wp-content\/uploads\/2023\/06\/lightspeed-cache-excludes.png","contentUrl":"https:\/\/www.darrenlambert.com\/wp-content\/uploads\/2023\/06\/lightspeed-cache-excludes.png","width":2126,"height":238},{"@type":"BreadcrumbList","@id":"https:\/\/www.darrenlambert.com\/fix-lightspeed-cache-woocommerce-caching-issues\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.darrenlambert.com\/"},{"@type":"ListItem","position":2,"name":"Fix LightSpeed Cache + WooCommerce Caching Issues"}]},{"@type":"WebSite","@id":"https:\/\/www.darrenlambert.com\/#website","url":"https:\/\/www.darrenlambert.com\/","name":"Darren Lambert","description":"WordPress & WooCommerce Expert","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.darrenlambert.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.darrenlambert.com\/#\/schema\/person\/ba3d82eb3f9925e946dae3b57e35bb79","name":"Darren","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.darrenlambert.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/076d975a0d00c5b2d53e2f76076cf5cf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/076d975a0d00c5b2d53e2f76076cf5cf?s=96&d=mm&r=g","caption":"Darren"},"url":"https:\/\/www.darrenlambert.com\/author\/darren\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.darrenlambert.com\/wp-json\/wp\/v2\/posts\/1572"}],"collection":[{"href":"https:\/\/www.darrenlambert.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.darrenlambert.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.darrenlambert.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.darrenlambert.com\/wp-json\/wp\/v2\/comments?post=1572"}],"version-history":[{"count":1,"href":"https:\/\/www.darrenlambert.com\/wp-json\/wp\/v2\/posts\/1572\/revisions"}],"predecessor-version":[{"id":1575,"href":"https:\/\/www.darrenlambert.com\/wp-json\/wp\/v2\/posts\/1572\/revisions\/1575"}],"wp:attachment":[{"href":"https:\/\/www.darrenlambert.com\/wp-json\/wp\/v2\/media?parent=1572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.darrenlambert.com\/wp-json\/wp\/v2\/categories?post=1572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.darrenlambert.com\/wp-json\/wp\/v2\/tags?post=1572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}