Webmaster Forumu

Geri git   Webmaster Forumu > Webmaster Kaynak Eğitim Tanıtım Hizmet > İnternet Programlama ve Kodlama > PHP

PHP PHP & PHP Hızlandırıcılar

Cevapla
 
LinkBack Seçenekler Stil
  #1 (permalink)   iTrader 
Alt 2008-06-12, 11:29
i.ari - ait Kullanıcı Resmi (Avatar)
servisler.gen.tr
 
Üyelik tarihi: Dec 2006
Nerden: Ankara
Mesajlar: 1.535
Blog Entries: 1
Tecrübe Puanı: 3
iTrader: %96/24
i.ari is on a distinguished road
Standart cache sisteminde sorun

Merhaba,
sistemimde cache sistemi kullanıyorum. Bu kullandıgım fonksiyon php sayfalarını html olarak kayıt ediyor.

ama 2 günde 1 cache yapısını yenilemesi için tarih fonksiyonu var çalışmıyor.
Hiç cache yenilemesi yapmıyor yani

PHP- Kodu:
$cachesystem 'yes';
$rootpath='./';
$cache 'cache';
//---------------------------------
//---- CACHE MOD v0.4 by xam
//---------------------------------
function cache_check ($file 'cachefile') {
    global 
$cache,$rootpath,$cachesystem;    
    if (
$cachesystem == 'yes') {
        
$cachefile $rootpath.$cache '/'.$file.'.html';
        
$cachetime 2400 60// 2 Hours     
        
$updatetime $cachetime 60 60;
        if (
file_exists($cachefile) && (TIMENOW $cachetime filemtime($cachefile)))
        {
            include_once(
$cachefile);
//            print("<p align=center><font class=small color=red><b>This content was last cached on ".date('Y-m-d H:i:s', filemtime($cachefile))." and updating every ".$updatetime." hours.</b></font></p>");
            
exit;
        }
        
ob_start();
    }else
        return;
}
  
function 
cache_save  ($file 'cachefile') {
    global 
$cache,$rootpath,$cachesystem;
    if (
$cachesystem == 'yes') {
        
$cachefile $rootpath.$cache '/'.$file.'.html';
        
$fp fopen($cachefile'w');
        
fwrite($fpob_get_contents());      
        
fclose($fp);        
        
ob_end_flush();
    }else
        return;
}
//---------------------------------
//---- CACHE MOD v0.4 by xam
//--------------------------------- 
__________________
Siteni Ekle Site Ekle
Alıntı ile Cevapla

  #2 (permalink)   iTrader 
Alt 2008-06-12, 20:39
i.ari - ait Kullanıcı Resmi (Avatar)
servisler.gen.tr
 
Üyelik tarihi: Dec 2006
Nerden: Ankara
Mesajlar: 1.535
Blog Entries: 1
Tecrübe Puanı: 3
iTrader: %96/24
i.ari is on a distinguished road
Standart

Bakacak yokmu
__________________
Siteni Ekle Site Ekle
Alıntı ile Cevapla

Cevapla


Seçenekler
Stil

Yetkileriniz
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık

Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Ses sisteminde Matrix deneyimi haberci02 Güncel Konular Haberler 0 2007-12-31 18:51
Bill2000 sisteminde hata servet korkmaz Internetten Para 2 2005-10-11 15:25
Google Cache sorun iyinet Google Arama 7 2005-05-27 22:56


Bütün Zaman Ayarları WEZ +2 olarak düzenlenmiştir. Şu Anki Saat: 12:00 .


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

Firefox