TYPO3:将插件从USER更改为USER_INT类型 [英] TYPO3: Change plugin from USER to USER_INT type

查看:46
本文介绍了TYPO3:将插件从USER更改为USER_INT类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个有效的TYPO3扩展程序。它附在此Wiki页面。如何更改此扩展的代码,使其成为USER_INT类型?即我不希望TYPO3缓存此插件的输出,也不希望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.

推荐答案

要禁用扩展的缓存,请转到piX / class.tx_XXX_piX.php文件并删除以下行(在类声明下方):

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;

您还需要在main方法中添加以下行(在$ this-> pi_loadLL(下) ;):

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!

这篇关于TYPO3:将插件从USER更改为USER_INT类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆