Ejemplo n.º 1
0
 /**
  * Gets cached data
  *
  * @param string $key         key name
  * @param string $cache_level indicates the cache dependencies on controller, language, user group, etc
  *
  * @return mixed cached data if exist, NULL otherwise
  */
 private static function _getCache($key, $cache_level = NULL)
 {
     $time_start = microtime(true);
     $data = self::$_cache->get($key, $cache_level);
     Debugger::set_cache_query($key . '::' . $cache_level, microtime(true) - $time_start);
     return $data !== false && !empty($data[0]) ? $data[0] : NULL;
 }