Exemple #1
0
 /**
  * Clear the query cache
  */
 public static function clear_cache()
 {
     self::$_query_cache = array();
 }
Exemple #2
0
 /**
  * Clear the query cache
  */
 public static function clear_cache($table_name = null, $connection_name = self::DEFAULT_CONNECTION)
 {
     self::$_query_cache = array();
     if (isset(self::$_config[$connection_name]['clear_cache']) and is_callable(self::$_config[$connection_name]['clear_cache'])) {
         return call_user_func_array(self::$_config[$connection_name]['clear_cache'], array($table_name, $connection_name));
     }
 }