Changeset 1454
- Timestamp:
- 02/17/10 12:01:25 (5 months ago)
- Files:
-
- trunk/lib/AkActionController/AkCacheHandler.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/AkActionController/AkCacheHandler.php
r1453 r1454 646 646 } 647 647 foreach ($addHeaders as $type=>$val) { 648 $finalHeaders[] = $type.($val!==true?': '.$val:''); 648 if(strtolower($type)!='set-cookie') { 649 $finalHeaders[] = $type.($val!==true?': '.$val:''); 650 } 649 651 } 650 652 $timestamp = time(); … … 1130 1132 $this->_controller->Response->addHeader('X-Cached-By','Akelos-Action-Cache'); 1131 1133 $this->_controller->Response->setContentTypeForFormat($format); 1132 } else {1134 } else if(empty($_SESSION['__flash']) && empty($this->_controller->flash_now)){ 1133 1135 ob_start(); 1134 1136 $this->_rendered_action_cache = false; 1137 } else { 1138 $this->_dont_action_cache=true; 1135 1139 } 1136 1140 return true; … … 1139 1143 function afterActionCache() 1140 1144 { 1141 if (!$this->_cachingAllowed() || $this->_rendered_action_cache === true ) return;1145 if (!$this->_cachingAllowed() || $this->_rendered_action_cache === true || !empty($this->_dont_action_cache)) return; 1142 1146 1143 1147 $this->_controller->handleResponse();
