{"id":29954,"date":"2023-03-10T04:05:18","date_gmt":"2023-03-10T04:05:18","guid":{"rendered":"https:\/\/www.wpstaq.com\/knowledgebase\/automatically-clear-woocommerce-product-cache-upon-sale\/"},"modified":"2024-07-03T04:50:59","modified_gmt":"2024-07-03T04:50:59","slug":"automatically-clear-woocommerce-product-cache-upon-sale","status":"publish","type":"knowledgebase","link":"https:\/\/www.wpstaq.com\/nz\/knowledgebase\/automatically-clear-woocommerce-product-cache-upon-sale\/","title":{"rendered":"Automatically clear WooCommerce product cache upon sale"},"content":{"rendered":"<h2>Question<\/h2>\n<p>Staq Cache is not replacing the cached product page after a sale. Unfortunately, it&#8217;s not updating the quantity. How can I fix this?<\/p>\n<h2>Answer<\/h2>\n<p>As long as you have WooCommerce enabled in your plugins list of your site, you can go to\u00a0<strong>Staq Hosting<\/strong> and scroll down towards the bottom and enable\u00a0<strong>Clear WooCommerce products after order<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-28438\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/03\/Clear-WooCommerce-Cache-After-Sale-730x1024.png\" alt=\"\" width=\"730\" height=\"1024\" \/><\/p>\n<p>This will clear all products that make up an order rather than dumping the entire cache which is a more efficient way of managing your website&#8217;s cache.<\/p>\n","protected":false},"featured_media":29677,"parent":0,"template":"","class_list":["post-29954","knowledgebase","type-knowledgebase","status-publish","has-post-thumbnail","hentry","categories-caching-woocommerce"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Automatically clear WooCommerce product cache upon sale - Managed Hosting Platform for WordPress<\/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.wpstaq.com\/knowledgebase\/automatically-clear-woocommerce-product-cache-upon-sale\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Automatically clear WooCommerce product cache upon sale - Managed Hosting Platform for WordPress\" \/>\n<meta property=\"og:description\" content=\"Question Staq Cache is not replacing the cached product page after a sale. Unfortunately, it&#8217;s not updating the quantity. How can I fix this? Answer As long as you have WooCommerce enabled in your plugins list of your site, you can go to\u00a0Staq Hosting and scroll down towards the bottom and enable\u00a0Clear WooCommerce products after&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpstaq.com\/knowledgebase\/automatically-clear-woocommerce-product-cache-upon-sale\/\" \/>\n<meta property=\"og:site_name\" content=\"Managed Hosting Platform for WordPress\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/staqhosting\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-03T04:50:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/woo-commerce.png\" \/>\n\t<meta property=\"og:image:width\" content=\"997\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/automatically-clear-woocommerce-product-cache-upon-sale\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/automatically-clear-woocommerce-product-cache-upon-sale\\\/\",\"name\":\"Automatically clear WooCommerce product cache upon sale - Managed Hosting Platform for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/automatically-clear-woocommerce-product-cache-upon-sale\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/automatically-clear-woocommerce-product-cache-upon-sale\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/woo-commerce.png\",\"datePublished\":\"2023-03-10T04:05:18+00:00\",\"dateModified\":\"2024-07-03T04:50:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/automatically-clear-woocommerce-product-cache-upon-sale\\\/#breadcrumb\"},\"inLanguage\":\"en-nz\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/automatically-clear-woocommerce-product-cache-upon-sale\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-nz\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/automatically-clear-woocommerce-product-cache-upon-sale\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/woo-commerce.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/woo-commerce.png\",\"width\":997,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/automatically-clear-woocommerce-product-cache-upon-sale\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wpstaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Automatically clear WooCommerce product cache upon sale\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"name\":\"Managed Hosting Platform for WordPress\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wpstaq.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-nz\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\",\"name\":\"Staq\",\"alternateName\":\"WPStaq\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-nz\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"width\":512,\"height\":512,\"caption\":\"Staq\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/staqhosting\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpstaq\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Automatically clear WooCommerce product cache upon sale - Managed Hosting Platform for WordPress","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.wpstaq.com\/knowledgebase\/automatically-clear-woocommerce-product-cache-upon-sale\/","og_locale":"en_US","og_type":"article","og_title":"Automatically clear WooCommerce product cache upon sale - Managed Hosting Platform for WordPress","og_description":"Question Staq Cache is not replacing the cached product page after a sale. Unfortunately, it&#8217;s not updating the quantity. How can I fix this? Answer As long as you have WooCommerce enabled in your plugins list of your site, you can go to\u00a0Staq Hosting and scroll down towards the bottom and enable\u00a0Clear WooCommerce products after&hellip;","og_url":"https:\/\/www.wpstaq.com\/knowledgebase\/automatically-clear-woocommerce-product-cache-upon-sale\/","og_site_name":"Managed Hosting Platform for WordPress","article_publisher":"https:\/\/www.facebook.com\/staqhosting\/","article_modified_time":"2024-07-03T04:50:59+00:00","og_image":[{"width":997,"height":500,"url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/woo-commerce.png","type":"image\/png"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/automatically-clear-woocommerce-product-cache-upon-sale\/","url":"https:\/\/www.wpstaq.com\/knowledgebase\/automatically-clear-woocommerce-product-cache-upon-sale\/","name":"Automatically clear WooCommerce product cache upon sale - Managed Hosting Platform for WordPress","isPartOf":{"@id":"https:\/\/www.wpstaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/automatically-clear-woocommerce-product-cache-upon-sale\/#primaryimage"},"image":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/automatically-clear-woocommerce-product-cache-upon-sale\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/woo-commerce.png","datePublished":"2023-03-10T04:05:18+00:00","dateModified":"2024-07-03T04:50:59+00:00","breadcrumb":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/automatically-clear-woocommerce-product-cache-upon-sale\/#breadcrumb"},"inLanguage":"en-nz","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpstaq.com\/knowledgebase\/automatically-clear-woocommerce-product-cache-upon-sale\/"]}]},{"@type":"ImageObject","inLanguage":"en-nz","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/automatically-clear-woocommerce-product-cache-upon-sale\/#primaryimage","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/woo-commerce.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/woo-commerce.png","width":997,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/automatically-clear-woocommerce-product-cache-upon-sale\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wpstaq.com\/"},{"@type":"ListItem","position":2,"name":"Automatically clear WooCommerce product cache upon sale"}]},{"@type":"WebSite","@id":"https:\/\/www.wpstaq.com\/#website","url":"https:\/\/www.wpstaq.com\/","name":"Managed Hosting Platform for WordPress","description":"","publisher":{"@id":"https:\/\/www.wpstaq.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpstaq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-nz"},{"@type":"Organization","@id":"https:\/\/www.wpstaq.com\/#organization","name":"Staq","alternateName":"WPStaq","url":"https:\/\/www.wpstaq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-nz","@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","width":512,"height":512,"caption":"Staq"},"image":{"@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/staqhosting\/","https:\/\/www.linkedin.com\/company\/wpstaq"]}]}},"_links":{"self":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/knowledgebase\/29954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/types\/knowledgebase"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/media\/29677"}],"wp:attachment":[{"href":"https:\/\/www.wpstaq.com\/nz\/wp-json\/wp\/v2\/media?parent=29954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}