Commit 19d8dad865 for woocommerce
commit 19d8dad865d1564beea00758b0422e1e3a84a908
Author: malinajirka <malinajirka@gmail.com>
Date: Wed Feb 4 16:58:09 2026 +0100
Fix: Ensure POS catalog cleanup action is scheduled for each file (#63107)
* Ensure product feed cleanup action is scheduled for each file
Woo creates a catalog file for each unique set of product/variation fields provided in the request. However, the cleanup job was previously marked as unique resulting in cleaning up only the file that was created first.
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>
diff --git a/plugins/woocommerce/changelog/63107-wooplug-6241-pos-catalog-cleanup-job-isnt-scheduled b/plugins/woocommerce/changelog/63107-wooplug-6241-pos-catalog-cleanup-job-isnt-scheduled
new file mode 100644
index 0000000000..390d8d8ddf
--- /dev/null
+++ b/plugins/woocommerce/changelog/63107-wooplug-6241-pos-catalog-cleanup-job-isnt-scheduled
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Fix POS catalog cleanup job to schedule deletion for each generated file instead of only the first one.
\ No newline at end of file
diff --git a/plugins/woocommerce/src/Internal/ProductFeed/Integrations/POSCatalog/AsyncGenerator.php b/plugins/woocommerce/src/Internal/ProductFeed/Integrations/POSCatalog/AsyncGenerator.php
index d317d8877c..7e25266beb 100644
--- a/plugins/woocommerce/src/Internal/ProductFeed/Integrations/POSCatalog/AsyncGenerator.php
+++ b/plugins/woocommerce/src/Internal/ProductFeed/Integrations/POSCatalog/AsyncGenerator.php
@@ -207,7 +207,7 @@ class AsyncGenerator {
$feed->get_file_path(),
),
'woo-product-feed',
- true
+ false
);
} catch ( \Throwable $e ) {
wc_get_logger()->error(