Iāve been trying to find a work around for this.
What Iāve tried is in a index.php have a link to a script to run in the background.
Start Cron
I added the following code, taken from
http://php.net/manual/en/features.connection-handling.php#112843
to cron.php
ignore_user_abort(true);
set_time_limit(0);
$strURL = āindex.phpā;
header(āLocation: $strURLā, true);
header(āConnection: closeā, true);
header(āContent-Encoding: none\r\nā);
header(āContent-Length: 0ā, true);
flush();
ob_flush();
session_write_close();
// Continue processingā¦
sleep(100);
exit;
This redirects straightaway when itās not compiled in Exeoutput.
When itās compiled it doesnāt redirect back to index.php until the script has finished.
I thought I had this working in Exeoutput but I must have been mistaken. Does the code need to be different for Exeoutput or is it not possible with Exeouput ?