[TYPO3-mvc] Caching issue

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Sun Feb 13 17:37:23 CET 2011


Marc Bastian Heinrichs wrote:
> I guess your pluginPage and your storagePage are not the same.
> If you set in the TSconfig of your storagePage
> TCEMAIN.clearCacheCmd = {pluginPageUid}
> Extbase will clear the cache of the pluginPage in case you add or update
> records in the storagePage.

Hello!

Wondering if it would be possible to implement a simple,
intelligent cache clearing system, which would clear the cache
for various pages automatically if objects/records changed
or were created.

Not sure, but something like this should be possible:

1.) New records are inserted on pid 10.
2.) TYPO3 looks up pages with the storagePid
     set to to 10 and clears those page caches.

Probably this could be quite difficult, because storagePids
are mostly stored as flexform/XML data inside the content elements.
And if storagePages are set via TS, it's even more complicated.
But to a certain degree it should be possible, no? Maybe there
needs to be a separate meta cache to store such relations.

But probably if the storagePid settings are always at their
same "position" in TS, like in Extbase it should be always
tx_extension.persistence.storagePid etc. then TYPO3 will know
it and could also clear those pages.

Not sure if it's really possible or makes sense in the end,
but automatic page cache clearing would be awesome.

Regards,
Thomas


More information about the TYPO3-project-typo3v4mvc mailing list