public function clearAction() { $id = $this->params('id'); $this->cacheManager->clearCache($id); $this->flashMessenger()->addSuccessMessage('Cache has been cleared'); return $this->redirect()->toRoute('admin/system/cache'); }
public function flush() { $writer = new PhpArray(); $writer->toFile(self::PATH, [self::KEY => $this->config]); $this->cacheManager->clearCache('module-classmap'); $this->cacheManager->clearCache('module-config'); }
public function fetchAll($params = array()) { $adapter = new ArrayAdapter($this->cacheManager->getCacheItems()); return new CacheCollection($adapter); }
private function flush() { $writer = new PhpArray(); $writer->toFile($this->localConfigPath, $this->directories); $this->cacheManager->clearModuleCache(); }