/** * @return array */ protected function getCacheKeyParts() { $keys = array(); // TSFE hash, contains page id, domain, etc. $keys[] = tx_rnbase_util_TYPO3::getTSFE()->getHash(); // the plugin ID (tt_content:uid or random md3, whenn rendered as USER in TS) $keys[] = $this->getConfigurations()->getPluginId(); // the conf id of the current action (without trailing dot) $keys[] = trim($this->getConfId(), '.'); // aditionaly a optional key set by ts $keys[] = $this->getSalt(); // include params to the cache key usage = qualifier|uid,tt_news|tt_news $params = $this->getIcludeParams(); if (!empty($params)) { // all get and post vars tx_rnbase::load('tx_rnbase_util_Arrays'); $gp = tx_rnbase_util_Arrays::mergeRecursiveWithOverrule(tx_rnbase_parameters::getGetParameters(), tx_rnbase_parameters::getPostParameters()); // the cobj to get the parameter value $cObj = $this->getConfigurations()->getCObj(); foreach ($params as $param) { $keys[] = 'P-' . $param . '-' . $cObj->getGlobal($param, $gp); } } return $keys; }