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.
相关问题
- Access fluidpage configuration in template
- How to install an extension to TYPO3 using compose
- jsp caching tag library
- How can we cache HLS video url once streamed
- Hibernate cache level 1
相关文章
- Is there a google API to read cached content? [clo
- AWS API Gateway caching ignores query parameters
- Check if url is cached webview android
- WebView's LOAD_NO_CACHE setting still saves fi
- How to get TYPO3 settings in the utility files?
- QML Loader not shows changes on .qml file
- UnitOfWork in Action Filter seems to be caching
- Python: Is there any reason *not* to cache an obje
The correct and comlete way to do this is a combination of the answers of @arturh and @Mehdi Guermazi:
addPItoST43()
call in ext_localconf.php from 1 to 0var $pi_checkCHash = true;
line from the property definitions in the head of the pi1 class.$this->pi_USER_INT_obj=1;
line to the start of the main() function in pi1.These changes are identical to what you will get when you use the kickstarter method explained in the solution of @bencuss.
The simpliest way to solve your problem is to go back to Extension Maganer, select your extension, choose "Edit in Kickstarter" from the dropdown menu, and then select the corresponding Frontend plugin to edit it's properties.
Check the first checkbox which means that you want your plugins to be rendered as USER_INT cObjects. After that click the View result button, uncheck all custom PHP files (your own code, like modules and plugins) on the right side and click the WRITE button. Please be careful. If you don't uncheck the checkboxes of your own files, they will be overwritten with dummy files.
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):
You also need to add the following line in the main method (below $this->pi_loadLL();):
Edit the file setup.txt of your extension "myext". Change "USER" into "USER_INT".
This extension will never be cached.
grunwalski it's the opposite you have to change this:
to this:
When you have created your extension with Kickstarter you also have to go to the file [yourextension]/ext_localconf.php and change this line
to this: