public function flush() { // delete the directory. trashy $this->remove(PressFacade::getConf('storage_path')); $this->logRequestInfo('PressCache flushed cache', []); // force the rebuild of the index. This is a convenience call, we assume // the user wants to flush ALL the cache, including the cached index PressFacade::index()->rebuild(); }