skeeks\cms\Config::readCache PHP Méthode

readCache() public méthode

public readCache ( ) : array
Résultat array
    public function readCache()
    {
        if ($this->existCache()) {
            \Yii::beginProfile('read cache: ' . $this->name);
            $this->result = (array) unserialize(file_get_contents($this->getCacheFile()));
            \Yii::endProfile('read cache: ' . $this->name);
        } else {
            $this->result = $this->merge();
            $this->saveCache();
        }
        return $this->result;
    }