web/lib/Zend/Cache/Frontend/Page.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Cache
    16  * @package    Zend_Cache
    17  * @subpackage Zend_Cache_Frontend
    17  * @subpackage Zend_Cache_Frontend
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id: Page.php 20096 2010-01-06 02:05:09Z bkarwin $
    20  * @version    $Id: Page.php 24593 2012-01-05 20:35:02Z matthew $
    21  */
    21  */
    22 
    22 
    23 
    23 
    24 /**
    24 /**
    25  * @see Zend_Cache_Core
    25  * @see Zend_Cache_Core
    28 
    28 
    29 
    29 
    30 /**
    30 /**
    31  * @package    Zend_Cache
    31  * @package    Zend_Cache
    32  * @subpackage Zend_Cache_Frontend
    32  * @subpackage Zend_Cache_Frontend
    33  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    33  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    34  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    34  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    35  */
    35  */
    36 class Zend_Cache_Frontend_Page extends Zend_Cache_Core
    36 class Zend_Cache_Frontend_Page extends Zend_Cache_Core
    37 {
    37 {
    38     /**
    38     /**
   241      */
   241      */
   242     public function start($id = false, $doNotDie = false)
   242     public function start($id = false, $doNotDie = false)
   243     {
   243     {
   244         $this->_cancel = false;
   244         $this->_cancel = false;
   245         $lastMatchingRegexp = null;
   245         $lastMatchingRegexp = null;
   246         foreach ($this->_specificOptions['regexps'] as $regexp => $conf) {
   246         if (isset($_SERVER['REQUEST_URI'])) {
   247             if (preg_match("`$regexp`", $_SERVER['REQUEST_URI'])) {
   247             foreach ($this->_specificOptions['regexps'] as $regexp => $conf) {
   248                 $lastMatchingRegexp = $regexp;
   248                 if (preg_match("`$regexp`", $_SERVER['REQUEST_URI'])) {
       
   249                     $lastMatchingRegexp = $regexp;
       
   250                 }
   249             }
   251             }
   250         }
   252         }
   251         $this->_activeOptions = $this->_specificOptions['default_options'];
   253         $this->_activeOptions = $this->_specificOptions['default_options'];
   252         if ($lastMatchingRegexp !== null) {
   254         if ($lastMatchingRegexp !== null) {
   253             $conf = $this->_specificOptions['regexps'][$lastMatchingRegexp];
   255             $conf = $this->_specificOptions['regexps'][$lastMatchingRegexp];