Bir arkadaşım onun sitede bir sıralama sistemi kurmak ve ben wordpress ve godaddy aracılığı ile mayın üzerinde barındırmak için çalışıyorum. Onun için günceller ama benim siteye yüklediğinizde, kısa sürede yeniden, bu hataları meydana gerekiyordu gibi 6 saat çalışır, ancak ben bir 500 zaman aşımı hatası alıyorum.
Onun sayfasıdır: http://www.jeremynoeljohnson.com/yakezieclub
Benim sayfa http://sweatingthebigstuff.com/yakezieclub şu anda ama? = 1 yeniden zaman hata verecektir.
Neden herhangi bir fikir oluyor olabilir? Ben değiştirmeniz gerekebilir herhangi bir ayar?
Sana bütün kodunu vermek, ama hangi parçası olabilir? index.php dosyası? Ben karışıklık hangi bölümünün emin değilim. Ben tam anlamıyla onun gibi aynı kodu yükledi.
Burada yeniden kısmı:
$cachefile = "rankings.html";
$daycachefile = "rankings_history.xml";
$cachetime = (60 * 60) * 6; // every 6 hours, the cache refreshes
$daycachetime = (60 * 60) * 24; // every 24 hours, the history will be written to - or whenever the page is requested after 24 hours has passed
$writenewdata = false;
if (!empty($_GET['reload']))
{
if ($_GET['reload']== 1)
{
$cachetime = 1;
}
}
if (!empty($_GET['reloadhistory']))
{
if ($_GET['reloadhistory'] == 1)
{
$daycachetime = 1;
$cachetime = 1;
}
}
if (file_exists($daycachefile) && (time() - $daycachetime < filemtime($daycachefile)))
{
// Do nothing
}
else
{
$writenewdata = true;
$cachetime = 1;
}
// Serve from the cache if it is younger than $cachetime
if (file_exists($cachefile) && (time() - $cachetime < filemtime($cachefile)))
{
include($cachefile);
echo "<!-- Cached ".date('jS F Y H:i', filemtime($cachefile))." -->";
exit;
}
ob_start(); // start the output buffer
>