And clean_user_cache hook as well. please.
I temporary added:
add_action(‘clean_user_cache’, array($this, ‘purge_user_on_update’), 10, 1); add_action(‘clean_post_cache’, array($this, ‘purge_post_on_update’), 10, 1); add_action(‘clean_post_cache’, array($this, ‘purge_archive_pages_on_post_update’), 10, 1);
public function purge_user_on_update( $user_id ) {
WPO_Page_Cache::delete_cache_by_url(get_author_posts_url($user_id), true); }
to the file class-wpo-cache-rules.php instead of:
add_action(‘save_post’, array($this, ‘purge_post_on_update’), 10, 1);
add_action(‘save_post’, array($this, ‘purge_archive_pages_on_post_update’), 10, 1);
and can confirme that all works perfectly.
But it would be perfect if it found it’s place in the oficial release, please.