public function loadCache()
    {
        if (!file_exists($this->cachePath)) {
            $this->rebuildCache();
        }

        // $data = json_decode(file_get_contents($this->cachePath), true);

        $data = include $this->cachePath;

        if ($data === null) {
            throw new \Exception("Invalid theme cache json file [{$this->cachePath}]");
        }
        return $data;
    }
public function loadCache()
    {
        if (!file_exists($this->cachePath)) {
            $this->rebuildCache();
        }

        // $data = json_decode(file_get_contents($this->cachePath), true);

        $data = include $this->cachePath;

        if ($data === null) {
            throw new \Exception("Invalid theme cache json file [{$this->cachePath}]");
        }
        return $data;
    }
public function loadCache ( ) { if ( ! file_exists ( $ this -> cachePath ) ) { $ this -> rebuildCache ( ) ; } // $data = json_decode(file_get_contents($this->cachePath), true);
 $ data = include $ this -> cachePath ; if ( $ data === null ) { throw new \ Exception ( "Invalid theme cache json file [{$this->cachePath}]" ) ; } return $ data ; }
Loads themes from the cache
Loads themes from the cache