index.php nin en üstüne
<?
$filename = "%%-".md5($_SERVER['REQUEST_URI'])."-%%.html";
$cachefile = "cache/".$filename;
$cachetime = 1 * 60 * 60; // Cache Süresi
if (file_exists($cachefile))
{
if(time() - $cachetime < filemtime($cachefile))
{
readfile($cachefile);
exit;
}
else
{
unlink($cachefile);
}
}
ob_start();
?>en altına ise bunu
<?
$fp = fopen($cachefile, 'w+');
fwrite($fp, ob_get_contents());
fclose($fp);
ob_end_flush();
?>
ftp ana dizine cache isimli bir klasör oluşturup chmod 777 vermeniz gerekir.
daha önce bu şekilde kullanmıştım
Şifrelemese daha iyi değilmi index.html silmesi lazım sıkıstırınca yoksa yeni eklenen yazı göstermiyor