WP All Import Not Purging Litespeed Cache
-
Hi there Team Litespeed! ??
I’m wondering if you could possibly point me in the right direction here, as I’m having some trouble with figuring out why Litespeed Cache isn’t purging on posts that are updated by WP All Import.On WP All Import’s side, I do have the following setting unchecked / disabled “Increase speed by disabling do_action calls in wp_insert_post during import.’ as I understand that actions are needed to run during the import in order to trigger the purge.
In addition, I’ve also tried adding the following custom code to WP All Import’s function editor – but unfortunately this also didn’t change the result.
function litespeed_purge_after_import( $post_id, $xml_node, $is_update ) {
if ( $is_update == ‘1’ ) {
do_action( ‘litespeed_purge_post’, $post_id );
}
}
add_action( ‘pmxi_saved_post’, ‘litespeed_purge_after_import’, 10, 3 );
I’ve already reached out to WP All Import’s support team & received the following response from them:
“That’s strange because we use the native WordPress methods to generate/update the posts. Even if that was the issue, the “do_action” call hooked to the “pmxi_saved_post” action should be able to do what you’re looking for, given that the “litespeed_purge_post” method is working correctly.”
Purging posts by other means appear to be working as intended, either through Woocommerce’s Single Product Editor or Advanced Bulk Edit – this issue appears to only be affecting WP All Import.
I’d really appreciate any assistance which you can provide!
- You must be logged in to reply to this topic.