netlogix/nxcachetags

TYPO3 Extension "nxcachetags"

Installs: 11 844

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

6.0.0 2023-11-13 08:14 UTC

This package is auto-updated.

Last update: 2024-04-10 09:14:38 UTC


README

stability-beta TYPO3 V11 TYPO3 V12 Minimum PHP Version GitHub CI status

Simplifies cache handling in TYPO3. Provides mechanisms for nested cached fragments, e.g. a news list. In a news list the single news can be cached and the whole list can be cached again. If a news in the list changes, not only must the cache for the news item be flushed, but also the whole list. As all other news items are still cached, only the changed item needs to be rendered while all other items can still be fetched from cache.

Example

<div>
	<ct:tagEnvironment objectOrCacheTag="{news}" />
	<f:for each="{news}" as="newsItem">
		<ct:cache identifiedBy="{0: newsItem}">
			<h3>{newsItem.title}</h3>
		</ct:cache>
	</f:for>
</div>