Beispiel #1
0
 /**
  * Get current request id
  *
  * @return string|null
  */
 protected function _getRequestId()
 {
     if (!$this->_processor) {
         return null;
     }
     return $this->_processor->getRequestId();
 }
Beispiel #2
0
 /**
  * Return cache page id without application. Depends on GET super global array.
  *
  * @param Enterprise_PageCache_Model_Processor $processor
  * @return string
  */
 public function getPageIdWithoutApp(Enterprise_PageCache_Model_Processor $processor)
 {
     $queryParams = $_GET;
     $sessionParams = Enterprise_PageCache_Model_Cookie::getCategoryCookieValue();
     if ($sessionParams) {
         $sessionParams = (array) json_decode($sessionParams);
         foreach ($sessionParams as $key => $value) {
             if (in_array($key, $this->_paramsMap) && !isset($queryParams[$key])) {
                 $queryParams[$key] = $value;
             }
         }
     }
     ksort($queryParams);
     $queryParams = json_encode($queryParams);
     Enterprise_PageCache_Model_Cookie::setCategoryCookieValue($queryParams);
     return $processor->getRequestId() . '_' . md5($queryParams);
 }
 /**
  * Return cache page id without application. Depends on GET super global array.
  *
  * @param Enterprise_PageCache_Model_Processor $processor
  * @return string
  */
 public function getPageIdWithoutApp(Enterprise_PageCache_Model_Processor $processor)
 {
     $queryParams = $_GET;
     ksort($queryParams);
     /**
      * unset known tracking codes
      */
     unset($queryParams["trk_module"]);
     unset($queryParams["trk_msg"]);
     unset($queryParams["trk_contact"]);
     unset($queryParams["utm_source"]);
     unset($queryParams["utm_medium"]);
     unset($queryParams["utm_term"]);
     unset($queryParams["utm_campaign"]);
     unset($queryParams["utm_content"]);
     /** End Edit */
     $queryParamsHash = md5(serialize($queryParams));
     return $processor->getRequestId() . '_' . $queryParamsHash;
 }
 /**
  * Get current request id
  *
  * @return string|null
  */
 protected function _getRequestId()
 {
     return !$this->_processor ? null : $this->_processor->getRequestId();
 }
 /**
  * Return cache page id without application. Depends on GET super global array.
  *
  * @param Enterprise_PageCache_Model_Processor $processor
  * @return string
  */
 public function getPageIdWithoutApp(Enterprise_PageCache_Model_Processor $processor)
 {
     $queryParams = $_GET;
     ksort($queryParams);
     $queryParamsHash = md5(serialize($queryParams));
     return $processor->getRequestId() . '_' . $queryParamsHash;
 }