Imdb\Pages::getCacheKey PHP Метод

getCacheKey() защищенный Метод

protected getCacheKey ( $url )
    protected function getCacheKey($url)
    {
        $urlParts = parse_url($url);
        $cacheKey = $urlParts['path'] . (isset($urlParts['query']) ? '?' . $urlParts['query'] : '');
        return trim($cacheKey, '/');
    }