/** * Run the caching functionality that is executed on save post. * * @param int $post_id The post_id. * @param WP_Post $post The current post object being saved. */ public function save_post($post_id, $post) { if (in_array($post->post_type, Tribe__Events__Main::getPostTypes())) { $this->cache->set_last_occurrence('save_post'); } }