BxDolCacheFile::getSizeByPrefix PHP Method

getSizeByPrefix() public method

get size of cached data by name prefix
public getSizeByPrefix ( $s )
    function getSizeByPrefix($s)
    {
        if (!($rHandler = opendir($this->sPath))) {
            return false;
        }
        $iSize = 0;
        $l = strlen($s);
        while (($sFile = readdir($rHandler)) !== false) {
            if (0 === strncmp($sFile, $s, $l)) {
                $iSize += @filesize($this->sPath . $sFile);
            }
        }
        closedir($rHandler);
        return $iSize;
    }