Networking\InitCmsBundle\Lib\PhpCache::clean PHP Method

clean() public method

public clean ( array $option = [] ) : mixed
$option array
return mixed
    public function clean($option = array())
    {
        if ($this->active) {
            return $this->phpFastCache->instance->clean($option);
        }
        return false;
    }

Usage Example

 /**
  * remove items from the cache and stop after one item.
  */
 protected function cleanCache()
 {
     if ($this->cleanCount < 1) {
         $this->cleanCount++;
         if (is_object($this->phpCache)) {
             $this->phpCache->clean();
         }
     }
 }