[TYPO3-dev] Exclude get vars from cHash check.

Nikolas Hagelstein hagelstein at shr.cc
Thu Nov 29 12:49:56 CET 2007


Hi,

Is there a way to exlude certain get parameters from the cHash check?
I had a look at tslib_fe and came across: 
$excludeCHashVars but it does not seem to be used anywhere.

Background:

I got a FE plugin showing the details of database record depending on the
UID passed to it via get.
That plugin is a USER function having $pi_checkCHash set to true. That
detail page also contains a
"Back" link which points back to whereever that page was requested from.
And that is where the need of excluding get vars from chash comes into play:


As you can see the detail plugin consinsts of a "cached" and "none cached
part". 
Cached : the db records details
Non Cached : the back link.

That far that good but: the backlink needs to be generated depending on a
further get var telling it where to point to. That var needs to be excluded
from chash check, since there are to many possible variations. (actually the
detailpage will be requested from a paginated result list e.g.
page=3&category=4&sword=whatever).

Well that is where i got stuck :|. 
---
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() {
		....
		$this->rendereCachedDetails($this->piVars['uid'])

		$TS['conf']='COA_INT';
		$TS['conf.']['10']='USER';
	
$TS['conf.']['10.']['userFunc']='tx_myext_pi1->renderUncachedBacklink';
	}
}
---
Any hints?

Bye,
Nikolas


More information about the TYPO3-dev mailing list