[TYPO3-dev] caching of pages with more than id and type params (with or without cHash)

Martin Ficzel martin.ficzel at gmx.de
Mon Mar 6 11:16:43 CET 2006


Martin Kutschker schrieb:
> Martin Ficzel schrieb:
>>
>>    Problem: there is just the typolink function in the api not a
>>    function wich is returnig only the "src" string. i would have to use
>>    typolink and extract the "src" string afterwards(not very elegant!).
> 
> Not true. There is an API for PHP and a TS optoin for a typolink that 
> will return the URL (and not the whole a-tag).

>>    i would prefer something like a "typolinkSrc" function. but i dindn't
>>    find it in the api.
> 
> You didn't study the API good enough. For PHP see tslib_content and 
> tslib_pibase, for typolink see TSref.

thanks for that hint! i was looking mostly in tslib_cObj , and t3lib_div 
so i did oversee the functions in pibase. in future i will have tslib_fe 
and tslib_pibase on the radar.

>> 2. configure typo3 in a way that the parameters "feature" and "level"
>>    are also taken into account for caching.
>>
>>    Problem: i dont find a way to do it.
> 
> Make it tx_myext_pi1[feature] and tx_myext_pi1[level]. I'm not quite 
> sure if the cHash takes them into account without that change. If you 
> don't like that you can build your own cHash-Argument. The necessary 
> function is in t3lib_div.

i made the link vars configurable with ts for the extension because i 
think the urls are more readable that way. so i have to get along with 
these values.

the other reason is that forms cannot use "tx_myext_pi1[feature]" names 
together with the "get" method. i want to use "get" for the searchform 
to make it transparent for the user.

i think i will use the custom cHash way. i hope i get along with these 
functions.


tslib_pibase::pi_getPageLink
t3lib_div::cHashParams
tslib_fe::makeCacheHash

thanks a lot, Martin




More information about the TYPO3-dev mailing list