[TYPO3-shop] mini-basket cache
Franz Holzinger
franz at fholzinger.com
Tue Feb 26 06:22:08 CET 2008
Richard Hirner a écrit :
> On Mon, 25 Feb 2008 07:59:26 +0100, Franz Holzinger wrote:
>>> How do I set the pid_list or the starting point? I set PIDstoreRoot to
>>> 3 because if I don't do this, the shop doesn't work (because of the
>>> shortcut from 3 -> 42, see the post before). However I normally don't
>>> set pid_list. But I tried now to set pid_list to 4 and it didn't work
>>> too. Do I have to set it?
>> Use the Setup for it.
>
> What do you mean? I set the pid_list in the TS setup but it didn't work
> nevertheless. By the way, I can't find pid_list in the Constant Editor.
pid_list will always work. But it can be overridden by the starting
point of the plugin.
PIDstoreRoot is not recommended.
>> You need knowledge of TypoScript do do this. It seems that the code of
>> tt_products must make this available. I have already done a similar
>> thing with tt_board, but do not have enough time to implement this for
>> tt_products. There has been a discussion on the German mailing list with
>> JoH about caches.
>
> Ah, do you mean to wrap the minibasket with an USER_INT object and then
> turn off caching for only this wrapper?
Partly right. Using a USER_INST instead of USER does always mean that
this will not be cached. But it has the big advantage, that the cache
may remain on the rest of content elements on the same page.
But to implement this, it will be necessary to use all the basket
elemnts as a separate plugin.
But it could also use a COA_INT. So the setup should be changed, that
caches plugins will be a COA and not cached plugins are a COA_INT. And
the whole extension itself would be changed from USER to USER_INT,
because an uncached element cannot be inside of a cached element.
- Franz
More information about the TYPO3-project-tt-products
mailing list