BxDolCacheFile::removeAllByPrefix PHP Method

removeAllByPrefix() public method

remove all data from cache by key prefix
public removeAllByPrefix ( $s ) : true
return true on success
    function removeAllByPrefix($s)
    {
        if (!($rHandler = opendir($this->sPath))) {
            return false;
        }
        $l = strlen($s);
        while (($sFile = readdir($rHandler)) !== false) {
            if (0 === strncmp($sFile, $s, $l)) {
                @unlink($this->sPath . $sFile);
            }
        }
        closedir($rHandler);
        return true;
    }