lscache_wp icon indicating copy to clipboard operation
lscache_wp copied to clipboard

edit_post and save_post commented out of src/purge.cls.php - surely a mistake?

Open jggretton opened this issue 5 years ago • 2 comments

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
		);

jggretton avatar Jul 10 '20 14:07 jggretton

Those are by purpose. Those hooks affected woocommerce's product purge IIRC.

hi-hai avatar Jul 10 '20 14:07 hi-hai

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.

jggretton avatar Jul 10 '20 15:07 jggretton