XF 2.1 deferred.php


Well-known member
I removed from the root of the server of Nationaal Computer Forum deferred.php


$startTime = microtime(true);
$fileDir = dirname(__FILE__);


require($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');

XenForo_Application::initialize($fileDir . '/library', $fileDir);
XenForo_Application::set('page_start_time', $startTime);

$dependencies = new XenForo_Dependencies_Public();

/** @var XenForo_Model_Deferred $deferredModel */
$deferredModel = XenForo_Model::create('XenForo_Model_Deferred');

$deferredModel->setNextDeferredTime(XenForo_Application::$time + 30);

$remaining = $deferredModel->run(false);
$output = array('moreDeferred' => ($remaining ? true : false));

header('Content-Type: application/json; charset=UTF-8');
header("Expires: Tue, 03 Jul 2001 06:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
echo json_encode($output);

In my eyes this file does not even belong in XenForo and certainly not in the root of the server!
Hello Brogan, thanks for your answer.
I deleted this file already en removed also many other files.

But I don't understand why all these XF1 files were present.

This is because I imported XF1.5.xx forum in a clean XenForo 2.0.
Top Bottom