setCache() публичный статический Метод

Setting cache content
public static setCache ( array $cache )
$cache array
Пример #1
0
 /**
  * Revalidate all currently cached entries
  */
 public function revalidateCache()
 {
     $start = microtime(true);
     $cache = Varien_Autoload::getCache();
     Varien_Autoload::setCache(array());
     foreach ($cache as $className => $path) {
         Varien_Autoload::getFullPath($className);
     }
     $duration = microtime(true) - $start;
     Mage::log('[ClassPathCache] Revalidated ' . count($cache) . ' classes (duration: ' . round($duration, 2) . ' sec)', 6, self::LOG_FILE);
 }