environment->is_active() ) { return; } $post = get_post( (int) $document->get_main_id() ); if ( ! $post instanceof WP_Post ) { return; } if ( self::TEMPLATE_TYPE === $post->post_type ) { $this->batch->start( true ); return; } $this->invalidator->refresh( $post ); } }