netlogix / assetcachinghelper
Fusion Helper to create Asset Cache Tags
Installs: 425
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Type:neos-package
Requires
- neos/content-repository: ^5.3 || ^7.0
- neos/media: ^5.3 || ^7.0
- neos/neos: ^5.3 || ^7.0
README
This package provides a Fusion Helper that can be used to create an AssetTag. For every given asset, the following two types of tags will be generated:
Asset_<Asset Identifier>
This tag is currently not flushed by Neos at allAssetDynamicTag_<Asset Identifier>
This tag is flushed whenever an Asset is changed
Usage
To create an asset tag, simply call the helper in your @cache block:
@cache {
mode = 'cached'
entryIdentifier {
node = ${node}
}
entryTags {
node = ${Neos.Caching.nodeTag(node)}
image = ${Netlogix.AssetCaching.assetTag(q(node).property('image'), node)}
}
}
The Helper takes either a single Asset or an array of Assets. Any null values will be ignored.