1 sayfadan 1. sayfa

Cached Generation mod - Uptade 1.2.2 -> 1.4.3

İletiTarih: 18.08.2006, 10:31
sabri ünal
Cached Generation mod güncellendi... dosya içinden güncelleme dosyası çıkmadı :x

ben de oturup kendi güncelleme dosyamı yazdım :lol:

Kod: Tümünü seç
#######################################################################
##MOD Title: Cached Generation Uptade 1.2.2 -> 1.4.3
##MOD Author: Doobdee < n/a > ( n/a ) http://www.doobdee.net
##MOD Author: CyberAlien < n/a > ( n/a ) http://www.phpbbstyles.com
##Update Fıle: yakusha < n/a > ( n/a ) http://www.phpbbturkiye.com
##MOD Description: This caches SQL queries, adds SQL queries counter and page generation time
##MOD Version: 1.0.1 - beta
##Installation Level: ()
##Installation Time: 20 Minutes
##Files To Edit: ()
#
#######################################################################
# This not mod. This only o update file for Cached Generation
# from 1.2.2 -> 1.4.3
#
# 1.0.1 - beta / 18 Agust 2006
# -- beta relaese
#
# 1.0.0 - Alfa / 17 Agust 2006
# -- initial relaese
# -- 40.000 man's dead this they in golcuk / turkey
###################################################################

#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php

#
#-----[ FIND ]------------------------------------------
#
      $sql = "SELECT topic_id
         FROM " . TOPICS_WATCH_TABLE . "
         WHERE topic_id = $topic_id
            AND user_id = " . $userdata['user_id'];
      if (!($result = $db->sql_query($sql)))
      {
         $db->clear_cache('posts_');
#
#-----[ REPLACE ]------------------------------------------
#
      $sql = "SELECT topic_id
         FROM " . TOPICS_WATCH_TABLE . "
         WHERE topic_id = $topic_id
            AND user_id = " . $userdata['user_id'];
      if (!($result = $db->sql_query($sql)))
      {
// only --> $db->clear_cache('posts_'); <-- deleted
#
#-----[ FIND ]------------------------------------------
#
               AND u.user_id = tw.user_id";
      if (!($result = $db->sql_query($sql)))
      {

#
#-----[ AFTER, ADD ]------------------------------------------
#
         $db->clear_cache('posts_');

#-----[ FIND ]------------------------------------------
#
#
#-----[ OPEN ]------------------------------------------
#
//includes/user_cp.php
includes/usercp_register.php

#
#-----[ FIND ]------------------------------------------
#
$message = $message . '<br /><br />' . sprintf($lang['Click_return_index'],  '<a href="' . append_sid("index.$phpEx") . '">', '</a>');

#
#-----[ AFTER, ADD ]------------------------------------------
#
$db->clear_cache();

#-----[ OPEN ]------------------------------------------
#
#
db/mysql.php

#
#-----[ FIND ]------------------------------------------
#
         if($this->caching)
         {
            if($this->row[$query_id] === false)
            {
               $this->write_cache();
            }
            $this->cache[] = $this->row[$query_id];
         }

#
#-----[ REPLACE ]------------------------------------------
#
           if($this->caching)
           {
               $this->cache[] = $this->row[$query_id];
               if($this->row[$query_id] === false || mysql_affected_rows($this->db_connect_id) == 1)
               {
                   $this->write_cache();
               }
           }

#
#-----[ FIND ]------------------------------------------
#
   function write_cache()
   {
      if(!$this->caching)
      {
         return;
      }
      global $phpbb_root_path;
      $f = fopen($phpbb_root_path . 'cache/sql_' . $this->caching . '.php', 'w');
      $data = var_export($this->cache, true);
      @fputs($f, '<?php $set = ' . $data . '; ?>');
      @fclose($f);
      @chmod($phpbb_root_path . 'cache/sql_' . $this->caching . '.php', 0777);
      $this->caching = false;
      $this->cached = false;
      $this->cache = array();
   }

#
#-----[ REPLACE ]------------------------------------------
#
   function write_cache()
   {
      if(!$this->caching)
      {
         return;
      }
      global $phpbb_root_path;
      $f = fopen($phpbb_root_path . 'cache/sql_' . $this->caching . '.php', 'w');
      $data = var_export($this->cache, true);
      @flock($f,LOCK_EX);
      @fputs($f, '<?php $set = ' . $data . '; ?>');
      @fclose($f);
      @flock($f,LOCK_UN);
      $set = array(); 
      include($phpbb_root_path . 'cache/sql_' . $this->caching . '.php'); 
      if (!$set) 
      { 
         @unlink($phpbb_root_path . 'cache/sql_' . $this->caching . '.php'); 
      }
      @chmod($phpbb_root_path . 'cache/sql_' . $this->caching . '.php', 0777);
      $this->caching = false;
      $this->cached = false;
      $this->cache = array();
   }

#
#-----[ OPEN ]------------------------------------------
#
#
db/mysql4.php

#
#-----[ FIND ]------------------------------------------
#
         if($this->caching)
         {
            if($this->row[$query_id] === false)
            {
               $this->write_cache();
            }
            $this->cache[] = $this->row[$query_id];
         }

#
#-----[ REPLACE ]------------------------------------------
#
           if($this->caching)
           {
               $this->cache[] = $this->row[$query_id];
               if($this->row[$query_id] === false || mysql_affected_rows($this->db_connect_id) == 1)
               {
                   $this->write_cache();
               }
           }


#
#-----[ FIND ]------------------------------------------
#
   function write_cache()
   {
      if(!$this->caching)
      {
         return;
      }
      global $phpbb_root_path;
      $f = fopen($phpbb_root_path . 'cache/sql_' . $this->caching . '.php', 'w');
      $data = var_export($this->cache, true);
      @fputs($f, '<?php $set = ' . $data . '; ?>');
      @fclose($f);
      @chmod($phpbb_root_path . 'cache/sql_' . $this->caching . '.php', 0777);
      $this->caching = false;
      $this->cached = false;
      $this->cache = array();
   }

#
#-----[ REPLACE ]------------------------------------------
#
   function write_cache()
   {
      if(!$this->caching)
      {
         return;
      }
      global $phpbb_root_path;
      $f = fopen($phpbb_root_path . 'cache/sql_' . $this->caching . '.php', 'w');
      $data = var_export($this->cache, true);
      @flock($f,LOCK_EX);
      @fputs($f, '<?php $set = ' . $data . '; ?>');
      @fclose($f);
      @flock($f,LOCK_UN);
      $set = array(); 
      include($phpbb_root_path . 'cache/sql_' . $this->caching . '.php'); 
      if (!$set) 
      { 
         @unlink($phpbb_root_path . 'cache/sql_' . $this->caching . '.php'); 
      }
      @chmod($phpbb_root_path . 'cache/sql_' . $this->caching . '.php', 0777);
      $this->caching = false;
      $this->cached = false;
      $this->cache = array();
   }
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
#EoM

İletiTarih: 18.08.2006, 11:16
sabri ünal
dosya, yarım saat içinde güncellendi...

İletiTarih: 19.08.2006, 14:46
murtaza
ne ise yariodu bu mod seysi?

İletiTarih: 19.08.2006, 14:59
sabri ünal
sql sorgularını bellekleyen bir mod vardı, cached generation diye, modun yeni sürümü çıktı fakat yeni sürümünde güncelleme dosyayı verilmemişti, ben de güncelleme dosyasını yaptım, önce kişiye gönderdim sonra siteye koydum :)

İletiTarih: 13.09.2006, 09:36
EzerchE
1.4.3 nerede yayınlandı? phpbb.com da ve http://www.doobdee.net te 1.2.2 versiyonu var...

Bu modlardan hangilerini kullanmalıyım? Bir de bu varmış:

http://www.phpbb.com/phpBB/viewtopic.ph ... 16#2425116

İletiTarih: 14.09.2006, 14:55
sabri ünal
;) anla artık, bu beta sürümüydü ve eski sürümdeki bir kaç hatayı düzeltiyordu, bu sebeple yeni sürümü phpbbstyles sitesinde bulduk ve kurduk, arada yeni sürüm için geçiş dosyaları yoktu, kullanmak isteyenler için yaptık, modun yazarı yeni ve daha kapsamlı bir şekilde yeni sürümü hazırlıyor...

kolay gelsin.

İletiTarih: 23.09.2006, 21:40
muslums27
Emeğine sağlık sabri kardeşim.Çok işime yaradı

Re: Cached Generation mod - Uptade 1.2.2 -> 1.4.3

İletiTarih: 06.06.2007, 15:52
emre_k
1.2.2 üzerine kendi sitesinde bir güncelleme yokki :?

Re: Cached Generation mod - Uptade 1.2.2 -> 1.4.3

İletiTarih: 25.12.2007, 00:26
NEFRİT
emre_k yazdı:1.2.2 üzerine kendi sitesinde bir güncelleme yokki :?


sabri ünal bilmem kızarmısın kızmazmısın emme sahiden de ne phpbb.com da neden kendi sitesinde cache generations la ilgili bir güncelleme göremedim (aradım bulamadım mı acaba ? )

neyse üstte bence sadece usercp_register de yapılan değşiklik işe yarar en azından yeni kayıt olan birinin ismi hemen görünür cache silme komutu kodu sayesinde ...