[TYPO3-mvc] Extbase objects caching

Viktor Livakivskyi invisible.kinder at gmail.com
Mon Jun 2 14:10:47 CEST 2014


Hi, Bernd.

> just apply the selection after display with javascript.
> either javascript gets the selection from cookie or from uncached JS 
> added to the end of the page.

Yes, this is also an option, but let's imagine a situation, when I neend to show a product-preview icon near it's name (from a field "preview"). And currently selected product should show different icon (from a field "preview_current") and output other fields, relevant to current product (description, features (which are in m:n relation) with links to each feature and so on).
To make it work JS way would mean, that I need to render all of that data for each product on first hit and hide/unhide with JS, which sounds more like hack, than a solution. And also increases page load time of first hit, since we can no longer use lazy-load for heavy entities.

More ellegant way from my point of view is to have cache on repository or query level, rather than on presentation level, since objects remain same, but presentation changes.

Regards.


More information about the TYPO3-project-typo3v4mvc mailing list