private function generateCacheFile($data)
 {
     $pagesCrawler = new PagesCrawler();
     $pageContents = $pagesCrawler->getPageContents($data['use_internal_url'] ? $data['internal_url'] : $data['url']);
     $this->cacheFileHandler->saveCacheFile($data['url'], $pageContents);
 }
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire()
 {
     $this->cacheFileHandler->deleteCacheFile('/', true);
 }
 public function onPurge()
 {
     $data = post();
     $cacheFileHanlder = new CacheFileHandler();
     $cacheFileHanlder->deleteCacheFile($data['path'], isset($data['include_subpaths']));
 }