#17862Make excludeCHashVars work
Description
class.tslib_fe.php consiste of the excludeCHashVars property but it isnt implemented yet.
There is the need to exclude certains GET varv from chash in order to make a
USER/USER_INT “switch” work where the USER_INT’s output depends on get parameters.
Sample:
class tx_myext_pi1 extends tslib_pibase {
var $prefixId = ‘tx_myext_pi1’;
var $scriptRelPath = ‘pi1/class.tx_myext_pi1.php’;
var $extKey = ‘myext’;
var $pi_checkCHash = true;
function main() {
….
$TS[‘conf’]=‘COA_INT’;
$TS[‘conf.’][‘10’]=‘USER’;
$TS[‘conf.’][‘10.’][‘userFunc’]=‘tx_myext_pi1->renderUncachedBacklink’;
$content = $this->renderCachedDetails($this->piVars[‘uid’]);
$content .= $this->cObj->cObjGetSingle($TS[‘conf’],$TS[‘conf.’]);
function renderUncachedBacklink() {
return ‘<a href=” .$this->piVars[‘heavyVariatingBackUrlThatShouldExcludedFromChash’] . ‘”>back</a>’;
}
function renderCachedDetails($uid) {
// return some database content depending on $uid -> inCluded to CHash.
}
}
}
(issue imported from #M6857)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.