netlogix/nxcachetags

TYPO3 Extension "nxcachetags"

Installs: 17 930

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

6.0.1 2024-07-08 12:18 UTC

This package is auto-updated.

Last update: 2024-12-08 13:21:04 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>