public function setCachePath($cachePath)
    {
        if (empty($cachePath) || !is_writable($cachePath)) {
            throw new PageCacheException(__METHOD__.' - Cache path not writable: '.$cachePath);
        }
        if (substr($cachePath, -1) !== '/') {
            throw new PageCacheException(__METHOD__.' - / trailing slash is expected at the end of cache_path.');
        }
        $this->cachePath = $cachePath;
        return $this;
    }
public function setCachePath($cachePath)
    {
        if (empty($cachePath) || !is_writable($cachePath)) {
            throw new PageCacheException(__METHOD__.' - Cache path not writable: '.$cachePath);
        }
        if (substr($cachePath, -1) !== '/') {
            throw new PageCacheException(__METHOD__.' - / trailing slash is expected at the end of cache_path.');
        }
        $this->cachePath = $cachePath;
        return $this;
    }
public function setCachePath ( $ cachePath ) { if ( empty ( $ cachePath ) || ! is_writable ( $ cachePath ) ) { throw new PageCacheException ( __METHOD__ . ' - Cache path not writable: ' . $ cachePath ) ; } if ( substr ( $ cachePath , - 1 ) !== '/' ) { throw new PageCacheException ( __METHOD__ . ' - / trailing slash is expected at the end of cache_path.' ) ; } $ this -> cachePath = $ cachePath ; return $ this ; }
Set cache path directory

@param string $cachePath Full path of cache files

@return Config for chaining
@throws PageCacheException
Set cache path directory