[TYPO3-dev] Drop no_cache
Steffen Kamper
steffen at sk-typo3.de
Wed Mar 5 08:57:34 CET 2008
"Dmitry Dulepov [typo3]" <dmitry at typo3.org> schrieb im Newsbeitrag
news:mailman.1.1204702996.16544.typo3-dev at lists.netfielders.de...
> Hi!
>
> Steffen Kamper wrote:
>> Situation:
>> I have a USER plugin. I have a function that should be rendered as
>> USER_INT because this content should not be cached.
>>
>> Solution:
>> I used a wrapperclass for easy usage. This is how the call looks:
>>
>> $content .= $this->theTime(); // content as USER-object, cached
>>
>> $content .= $this->cObj->renderNoCache($this->prefixId, 'theTime'); //
>> content as COA_INT, not cached
>>
>> I attached the patch and a simple demo extension.
>
> I think you can use USER_INT from USER already now, without a patch.
>
> The most used use case for no_cache is form submission in FE. Most forms
> are submitted using no_cache. So any such extension has to be modified to
> add (or split existing plugin) another FE plugin specially to process
> submission. Plus all administrators have to change plugin instances. I
> afraif many wiill be reluctant to do it.
>
> --
Hi Dmitry,
i know that you already can dop it. You can copy the snippet in your
extension as well.
Doing a promotion campaign there is a need to show alternatives. And if they
are as simple as adding no_cache to forms they will use it, so i thought a
simple wrapper is a good idea.
vg Steffen
More information about the TYPO3-dev
mailing list