Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TYPO3: Change plugin from USER to USER_INT type

Tags:

caching

typo3

I have a working TYPO3 extension. It is attached this wiki page. How can I change the code of this extension so it is of the USER_INT type? I.e. I don't want TYPO3 to cache the output of this plugin, and want TYPO3 to invoke the extension ever time a page that uses the extension, i.e. disable the caching for this extension.

like image 408
avernet Avatar asked Nov 15 '08 20:11

avernet


1 Answers

To disable caching for your extension go to your piX/class.tx_XXX_piX.php file and remove the following line (below your class declaration):

var $pi_checkCHash = true;

You also need to add the following line in the main method (below $this->pi_loadLL();):

$this->pi_USER_INT_obj=1;    // Configuring so caching is not expected. This value means that no cHash params are ever set. We do this, because it's a USER_INT object!
like image 131
arturh Avatar answered Sep 20 '22 00:09

arturh