lscache_wp
lscache_wp copied to clipboard
edit_post and save_post commented out of src/purge.cls.php - surely a mistake?
edit_post and save_post were commented out of src/purge.cls.php in March: https://github.com/litespeedtech/lscache_wp/commit/ce68bb7e7ffa559ff9f4c70b474fddb0ebbfdf6f
This is surely a mistake?
//register purge actions
$purge_post_events = array(
// 'edit_post',
// 'save_post',
'delete_post',
'wp_trash_post',
'clean_post_cache', // This will disable wc's not purge product when stock status not change setting
// 'wp_update_comment_count', // TODO: check if needed for non ESI
);
Those are by purpose. Those hooks affected woocommerce's product purge IIRC.
So now people have to manually purge the cache for a post after an update now instead of it happening automatically?
I haven't tried it on a standard post, but without these it wasn't purging my Events. It is now I've put them back in.