Esempio n. 1
0
 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');
 }
Esempio n. 2
0
 public function flush()
 {
     $writer = new PhpArray();
     $writer->toFile(self::PATH, [self::KEY => $this->config]);
     $this->cacheManager->clearCache('module-classmap');
     $this->cacheManager->clearCache('module-config');
 }
Esempio n. 3
0
 public function fetchAll($params = array())
 {
     $adapter = new ArrayAdapter($this->cacheManager->getCacheItems());
     return new CacheCollection($adapter);
 }
Esempio n. 4
0
 private function flush()
 {
     $writer = new PhpArray();
     $writer->toFile($this->localConfigPath, $this->directories);
     $this->cacheManager->clearModuleCache();
 }