I have an ob_start();
in my header.php and ob_end_flush(); include("cron.php");
in my footer.
Now the cron.php takes a few seconds to load so it takes time for the page to render.
How come it isn't rendering considering I have flushed the output? I know browsers mess with this and in the past their have been techniques but I have tried them (eg. adding flush();
or a UTF-8 header) but none of them have worked.
Is there a solution that works or is there another way for me to accomplish this?
How does WordPress include it's cron file?
header.php:
<?php
ob_start();
require_once("config.php");
?>
Then there's the page code.
footer.php:
<?php ob_flush(); flush(); ob_end_flush(); require("cron.php"); ?>