application/Espo/Core/DataManager.php
public function clearCache()
    {
        $result = $this->getContainer()->get('fileManager')->removeInDir($this->cachePath);

        if ($result != true) {
            throw new Exceptions\Error("Error while clearing cache");
        }

        $this->updateCacheTimestamp();

        return $result;
    }
public function clearCache()
    {
        $result = $this->getContainer()->get('fileManager')->removeInDir($this->cachePath);

        if ($result != true) {
            throw new Exceptions\Error("Error while clearing cache");
        }

        $this->updateCacheTimestamp();

        return $result;
    }
public function clearCache ( ) { $ result = $ this -> getContainer ( ) -> get ( 'fileManager' ) -> removeInDir ( $ this -> cachePath ) ; if ( $ result != true ) { throw new Exceptions \ Error ( "Error while clearing cache" ) ; } $ this -> updateCacheTimestamp ( ) ; return $ result ; }
Clear a cache

@return bool
Clear a cache