[Typo3-dev] Caching

Ernesto Baschny [cron IT] ernst at cron-it.de
Sat Sep 10 13:36:42 CEST 2005


On 09.09.2005 18:20, Ries van Twisk wrote:

>>> You probably have made a frontend plugin, which is added in
>>> ext_localconf.php with t3lib_extMgm::addPItoST43. The last argument of
>>> this call ($cached) tells the extMgm if you want the plugin to be an
>>> USER or USER_INT object:
>>>
>>> USER ($cached=1):
>>> t3lib_extMgm::addPItoST43($_EXTKEY,'pi1/class.tx_blabla_pi1.php','_pi1','',1);
>>>
>>> USER_INT ($cached=0):
>>> t3lib_extMgm::addPItoST43($_EXTKEY,'pi1/class.tx_blabla_pi1.php','_pi1','',0);

>> Yes, thats it! Thanx a lot!
>> Can you tell me where (if) I can find this in the documentation?

> This is amazingly confused for us as developers....
> Shouldn't there be just one place where we can say 'USER_INT' or just
> 'USER' isntead of two places???

Your plugin is simply a cObj (content object) that calls an external PHP
script. If it is an USER or USER_INT object can be specified using
TypoScript. The developer chooses one default, but any user can change
it with TypoScript (e.g "plugin.tx_xxx_pi1 = USER"). The call to
addPItoST43 is just a shortcut to writing the TypoScript on your own.

But now the developer, in it's script, might want to link to itself.

If you have said:

    $this->pi_USER_INT_obj = 1;

Any link to yourself won't expect to be cached (no cHash and
no_cache=1). This is the only use of this variable. Its just a bit
misleading in the name.

Documentation for some useful functions for extentions (including
addPItoST43) can be found in the Core API documentation:

http://typo3.org/documentation/document-library/doc_core_api/Functions_typically/

If you install the extdeveval extention, you will have the API docs that
were extracted from the source a year ago, where you also find the
documentation for this. Or read the source! :)

Cheers,
Ernesto




More information about the TYPO3-dev mailing list