Sindbad~EG File Manager
<?php
session_start();
// Only ping Strapi once per session to avoid repeated calls
if (!isset($_SESSION['strapi_pinged'])) {
$_SESSION['strapi_pinged'] = true;
// Wake up Strapi with a lightweight HEAD request
$ch = curl_init("https://your-strapi-instance-url/api/recipes");
curl_setopt($ch, CURLOPT_NOBODY, true); // HEAD request
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 2); // Short timeout
curl_exec($ch);
curl_close($ch);
}
?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists