コード例 #1
0
ファイル: eaccelerator.php プロジェクト: MrAdder/phpbb
 /**
  * {@inheritDoc}
  */
 function purge()
 {
     foreach (eaccelerator_list_keys() as $var) {
         // @todo Check why the substr()
         // @todo Only unset vars matching $this->key_prefix
         eaccelerator_rm(substr($var['name'], 1));
     }
     parent::purge();
 }
コード例 #2
0
ファイル: xcache.php プロジェクト: Tarendai/spring-website
 /**
  * {@inheritDoc}
  */
 function purge()
 {
     // Run before for XCache, if admin functions are disabled it will terminate execution
     parent::purge();
     // If the admin authentication is enabled but not set up, this will cause a nasty error.
     // Not much we can do about it though.
     $n = xcache_count(XC_TYPE_VAR);
     for ($i = 0; $i < $n; $i++) {
         xcache_clear_cache(XC_TYPE_VAR, $i);
     }
 }
コード例 #3
0
ファイル: redis.php プロジェクト: Tarendai/spring-website
 /**
  * {@inheritDoc}
  */
 function purge()
 {
     $this->redis->flushDB();
     parent::purge();
 }
コード例 #4
0
ファイル: memcache.php プロジェクト: Tarendai/spring-website
 /**
  * {@inheritDoc}
  */
 function purge()
 {
     $this->memcache->flush();
     parent::purge();
 }
コード例 #5
0
ファイル: apc.php プロジェクト: Tarendai/spring-website
 /**
  * {@inheritDoc}
  */
 function purge()
 {
     apc_clear_cache('user');
     parent::purge();
 }
コード例 #6
0
ファイル: wincache.php プロジェクト: Tarendai/spring-website
 /**
  * {@inheritDoc}
  */
 function purge()
 {
     wincache_ucache_clear();
     parent::purge();
 }