Beispiel #1
0
 public function __construct()
 {
     parent::__construct();
     if (isset($_COOKIE[AW_Mobile_Model_Observer::MOBILE_COOKIE])) {
         $this->_requestId .= "_" . $_COOKIE[AW_Mobile_Model_Observer::MOBILE_COOKIE];
     } else {
         $this->_requestId .= "_" . time() . mt_rand();
     }
     if (preg_match("#switch/toMobile#", $this->_requestId) || preg_match("#switch/toDesktop#", $this->_requestId)) {
         $this->_requestId .= "_" . time() . mt_rand();
     }
     Mage::register('_singleton/enterprise_pagecache/processor', $this, true);
     $this->_requestCacheId = $this->prepareCacheId($this->_requestId);
 }