Prado\Web\UI\WebControls\TOutputCache::calculateCacheKey PHP Method

calculateCacheKey() protected method

The key is calculated based on the unique ID of this control and the request parameters specified via {@link setVaryByParam VaryByParam}. If {@link getVaryBySession VaryBySession} is true, the session ID will also participate in the key calculation. This method may be overriden to support other variations in the calculated cache key.
protected calculateCacheKey ( ) : string
return string cache key
    protected function calculateCacheKey()
    {
        $key = $this->getBaseCacheKey();
        if ($this->_varyBySession) {
            $key .= $this->getSession()->getSessionID();
        }
        if ($this->_varyByParam !== '') {
            $params = array();
            $request = $this->getRequest();
            foreach (explode(',', $this->_varyByParam) as $name) {
                $name = trim($name);
                $params[$name] = $request->itemAt($name);
            }
            $key .= serialize($params);
        }
        $param = new TOutputCacheCalculateKeyEventParameter();
        $this->onCalculateKey($param);
        $key .= $param->getCacheKey();
        return $key;
    }