Exemplo n.º 1
0
 public function removeCacheAction()
 {
     FileUtil::emptyDir(SystemUtil::getCachePath());
     return $this->createJsonResponse(true);
 }
Exemplo n.º 2
0
 public function testGetCachePath()
 {
     $testCachePath = SystemUtil::getCachePath();
     $cachePath = SystemUtil::getSystemRootPath() . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'cache';
     $this->assertEquals($cachePath, $testCachePath);
 }