예제 #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');
 }
예제 #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');
 }
예제 #3
0
 public function fetchAll($params = array())
 {
     $adapter = new ArrayAdapter($this->cacheManager->getCacheItems());
     return new CacheCollection($adapter);
 }
예제 #4
0
파일: Directory.php 프로젝트: zource/zource
 private function flush()
 {
     $writer = new PhpArray();
     $writer->toFile($this->localConfigPath, $this->directories);
     $this->cacheManager->clearModuleCache();
 }