diff --git a/widgets/widget-featured_products.php b/widgets/widget-featured_products.php index 5933f53e0f2..fbab062a577 100644 --- a/widgets/widget-featured_products.php +++ b/widgets/widget-featured_products.php @@ -78,7 +78,7 @@ class WooCommerce_Widget_Featured_Products extends WP_Widget { endif; - $cache[$args['widget_id']] = ob_get_clean(); + $cache[$args['widget_id']] = ob_get_flush(); wp_cache_set('widget_featured_products', $cache, 'widget'); }