vivomedia / neos-asset-collection-cache-flusher
Cache flusher for Neos Assets and AssetCollections
Installs: 559
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:neos-package
Requires
- php: >=8.1
- neos/neos: ^7.3 || ^8.0 || ^9.0
README
This package provides functionality to flush asset and asset collection caches on changes to themselves or there containing assets.
Install
Install with composer
composer require vivomedia/neos-asset-collection-cache-flusher
Usage
Asset
prototype(SomePackage:Asset) < prototype(Neos.Neos:ContentComponent) {
renderer = afx`
...
`
@cache {
mode = 'cached'
entryIdentifier {
asset = ${q(node).property('asset').identifier} // or some other identifier
}
entryTags {
asset = ${'Asset_' + q(node).property('asset').identifier}
}
}
}
AssetCollection
prototype(SomePackage:AssetCollection) < prototype(Neos.Neos:ContentComponent) {
renderer = afx`
...
`
@cache {
mode = 'cached'
entryIdentifier {
collection = ${q(node).property('assetCollection')} // or some other identifier
}
entryTags {
collection = ${'AssetCollection_' + q(node).property('assetCollection')}
}
}
}