
			wp_schedule_single_event( cheval_derby_prochain_depart(), CHEVAL_DERBY_CRON_HOOK );
		}
	}
	add_action( 'init', 'cheval_derby_programmer' );

	function cheval_derby_rafraichir() {
		$url = home_url( '/derby/api/course.php?rafraichissement=planifie&t=' . time() );
		$reponse = wp_remote_get( $url, array(
			'timeout' => 30,
			'redirection' => 2,
			'headers' => array( 'Cache-Control' => 'no-cache' ),
		) );

		if ( is_wp_error( $reponse ) || 200 !== wp_remote_retrieve_response_code( $reponse ) ) {
			error_log( 'Cheval Derby : le rafraîchissement planifié a échoué.' );
		}

		wp_schedule_single_event( cheval_derby_prochain_depart(), CHEVAL_DERBY_CRON_HOOK );
	}
	add_action( CHEVAL_DERBY_CRON_HOOK, 'cheval_derby_rafraichir' );
}
?>
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//chevalinvestisseur.ca/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://chevalinvestisseur.ca/page-sitemap.xml</loc>
		<lastmod>2026-01-24T06:58:17+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->