Varien_Autoload::loadCacheContent PHP Метод

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

Load cache content from file
public static loadCacheContent ( ) : array
Результат array
    public static function loadCacheContent()
    {
        if (self::isApcUsed()) {
            $value = apc_fetch(self::getCacheKey());
            if ($value !== false) {
                self::setCache($value);
            }
        } elseif (file_exists(self::getCacheFilePath())) {
            $cacheFilePath = unserialize(file_get_contents(self::getCacheFilePath()));
            // If the file is corrupted, it resets cache
            if ($cacheFilePath === false) {
                $cacheFilePath = array();
            }
            self::setCache($cacheFilePath);
        }
        if (file_exists(self::getRevalidateFlagPath()) && unlink(self::getRevalidateFlagPath())) {
            // When this is called there might not be an autoloader in place. So we need to manually load all the needed classes:
            require_once implode(DIRECTORY_SEPARATOR, array(self::$_BP, 'app', 'code', 'core', 'Mage', 'Core', 'Helper', 'Abstract.php'));
            require_once implode(DIRECTORY_SEPARATOR, array(self::$_BP, 'app', 'code', 'community', 'Aoe', 'ClassPathCache', 'Helper', 'Data.php'));
            $helper = new Aoe_ClassPathCache_Helper_Data();
            $helper->revalidateCache();
        }
    }