Open NickGreen opened 2 years ago
This might work, need to fully test:
if ( class_exists( 'WCS_Related_Order_Store_Cached_CPT' ) ) {
WCS_Related_Order_Store_Cached_CPT::instance()->delete_all_caches();
}
if ( class_exists( 'WCS_Customer_Store_Cached_CPT' ) ) {
WCS_Customer_Store_Cached_CPT::instance()->delete_all_caches();
}
There are a few caches that store order and subscription data, that we need to look into flushing after running the Anonymize or Delete functions.
If you go to WooCommerce > status > tools, there are a couple of relevant tools:
I'd probably also consider running: