private function getCache() { $cachePath = $this->getCachePath(); if (!$this->files->exists($cachePath)) { $this->createCache(); $this->optimize(); } return collect(json_decode($this->files->get($cachePath), true)); }