[TYPO3-dev] Exclude get vars from cHash check.
Nikolas Hagelstein
hagelstein at shr.cc
Thu Nov 29 16:16:01 CET 2007
Hi,
Dmitry Dulepov wrote:
> I think we definitely can implement automatic exclusions for all
> USER_INT parameters. This would be an advantage.
Yeah, but furthermore manual exclusion should be also possible(ideally from
within the plugin) since i could implement a pluginbased user/user_int
switch as shown in my first post (see beyond).
BTW:
Are you aware of a way make that exclusion work without xclassing tslib_fe
or hacking t3lib_div?
Shall i update http://bugs.typo3.org/view.php?id=6857 or do you want?
----
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.
}
}
}
More information about the TYPO3-dev
mailing list