Cached Generation mod - Uptade 1.2.2 -> 1.4.3

Eklentiler ile ilgili gelişmeler. Yeni modlar, güncellemeler.

Cached Generation mod - Uptade 1.2.2 -> 1.4.3

İleti sabri ünal 18.08.2006, 10:31

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
Mutluyum, biraz komedi takılıyorum! sakın kızmayın yakında geçer, sebebini ben de bilmiyorum! yeni bir aşk da bulmuş değilim!
Kullanıcı avatarı
sabri ünal
Üye
Üye
 
İleti: 1325
Kayıt: 27.10.2005, 15:49
Konum: İstanbul

İleti sabri ünal 18.08.2006, 11:16

dosya, yarım saat içinde güncellendi...
Mutluyum, biraz komedi takılıyorum! sakın kızmayın yakında geçer, sebebini ben de bilmiyorum! yeni bir aşk da bulmuş değilim!
Kullanıcı avatarı
sabri ünal
Üye
Üye
 
İleti: 1325
Kayıt: 27.10.2005, 15:49
Konum: İstanbul

İleti murtaza 19.08.2006, 14:46

ne ise yariodu bu mod seysi?
Kullanıcı avatarı
murtaza
Üye
Üye
 
İleti: 1187
Kayıt: 15.11.2005, 17:15
Konum: Yurt Dışı

İleti sabri ünal 19.08.2006, 14:59

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 :)
Mutluyum, biraz komedi takılıyorum! sakın kızmayın yakında geçer, sebebini ben de bilmiyorum! yeni bir aşk da bulmuş değilim!
Kullanıcı avatarı
sabri ünal
Üye
Üye
 
İleti: 1325
Kayıt: 27.10.2005, 15:49
Konum: İstanbul

İleti EzerchE 13.09.2006, 09:36

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
EzerchE
Üye
Üye
 
İleti: 41
Kayıt: 05.12.2005, 20:23

İleti sabri ünal 14.09.2006, 14:55

;) 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.
Mutluyum, biraz komedi takılıyorum! sakın kızmayın yakında geçer, sebebini ben de bilmiyorum! yeni bir aşk da bulmuş değilim!
Kullanıcı avatarı
sabri ünal
Üye
Üye
 
İleti: 1325
Kayıt: 27.10.2005, 15:49
Konum: İstanbul

İleti muslums27 23.09.2006, 21:40

Emeğine sağlık sabri kardeşim.Çok işime yaradı
muslums27
Üye
Üye
 
İleti: 2
Kayıt: 01.06.2006, 11:57
Konum: Gaziantep

Re: Cached Generation mod - Uptade 1.2.2 -> 1.4.3

İleti emre_k 06.06.2007, 15:52

1.2.2 üzerine kendi sitesinde bir güncelleme yokki :?
Kullanıcı avatarı
emre_k
Üye
Üye
 
İleti: 35
Kayıt: 09.04.2006, 09:07

Re: Cached Generation mod - Uptade 1.2.2 -> 1.4.3

İleti NEFRİT 25.12.2007, 00:26

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 ...
Kullanıcı avatarı
NEFRİT
Üye
Üye
 
İleti: 287
Kayıt: 17.03.2006, 01:14
Konum: Tekirdağ


Duyurular & Güncellemeler



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron