doFlush() protected method

Clear the cache. Both the doctrine FilesystemCache, as well as twig and thumbnail temp files.
protected doFlush ( ) : boolean
return boolean
示例#1
0
 /**
  * Check Bolt's version against a cached key. If there is a change we flush
  * the cache data and if required synchronise asset directories.
  */
 public function checkVersion()
 {
     if ($this->checkCacheVersion()) {
         return;
     }
     $this->syncView();
     $this->cache->doFlush();
     $this->updateCacheVersion();
 }
示例#2
0
 public function tearDown()
 {
     $this->cache->doFlush();
     $this->clean($this->workspace);
 }