Index: Classes/MVC/RequestInterface.php =================================================================== --- Classes/MVC/RequestInterface.php (revision 7692) +++ Classes/MVC/RequestInterface.php (working copy) @@ -46,6 +46,15 @@ public function setDispatched($flag); /** + * Sets the cached flag + * + * @param boolean $flag If this request is being cached + * @return void + * @api + */ + public function setCached($flag); + + /** * If this request has been dispatched and addressed by the responsible * controller and the response is ready to be sent. * @@ -58,6 +67,14 @@ public function isDispatched(); /** + * If this request is being cached. + * + * @return boolean TRUE if this request is cached + * @api + */ + public function isCached(); + + /** * Returns the object name of the controller defined by the package key and * controller name * Index: Classes/MVC/Request.php =================================================================== --- Classes/MVC/Request.php (revision 7692) +++ Classes/MVC/Request.php (working copy) @@ -81,6 +81,11 @@ protected $dispatched = FALSE; /** + * @var boolean If the request is cached + */ + protected $cached = FALSE; + + /** * @var array Errors that occured during this request */ protected $errors = array(); @@ -97,6 +102,17 @@ } /** + * Sets the cached flag + * + * @param boolean $flag If this request is cached + * @return void + * @api + */ + public function setCached($flag) { + $this->cached = $flag ? TRUE : FALSE; + } + + /** * If this request has been dispatched and addressed by the responsible * controller and the response is ready to be sent. * @@ -111,6 +127,16 @@ } /** + * If this request is being cached. + * + * @return boolean TRUE if this request is cached + * @api + */ + public function isCached() { + return $this->cached; + } + + /** * Returns the object name of the controller defined by the extension name and * controller name * Index: Classes/Dispatcher.php =================================================================== --- Classes/Dispatcher.php (revision 7692) +++ Classes/Dispatcher.php (working copy) @@ -112,6 +112,7 @@ if (isset($this->cObj->data) && is_array($this->cObj->data)) { // we need to check the above conditions as cObj is not available in Backend. $request->setContentObjectData($this->cObj->data); + $request->setCached($this->cObj->getUserObjectType() == tslib_cObj::OBJECTTYPE_USER); } $response = t3lib_div::makeInstance('Tx_Extbase_MVC_Web_Response');