コード例 #1
0
ファイル: Idiorm.php プロジェクト: zilionis/idiorm
 /**
  * Clear the query cache
  */
 public static function clear_cache()
 {
     self::$_query_cache = array();
 }
コード例 #2
0
ファイル: Idiorm.php プロジェクト: kevinsperrine/idiorm
 /**
  * Clear the cache
  *
  * @return none
  */
 public static function clearCache()
 {
     switch (self::$config['caching_driver']) {
         case 'query':
             self::$query_cache = array();
             break;
         case 'memcache':
             $memcached = self::getMemcache();
             $memcached->flush();
             break;
         default:
             throw new Exception("Cache driver not supported");
     }
 }