Example #1
0
 public function clean()
 {
     setGPC('sessionid', '', -1);
     GilCache::del(self::$_sessionid);
 }
Example #2
0
 /**
  * 根据表名清除读取该表的所有缓存
  * 适合某一表有新数据插入时,需要立即显示新数据
  * @param string $table
  */
 public static function cleanCacheByTable($table)
 {
     $index = GilCache::get('DBCACHE_' . $table);
     if (empty($index)) {
         return true;
     }
     foreach ($index as $k => $v) {
         GilCache::del($k);
     }
     GilCache::del('DBCACHE_' . $table);
 }