https://github.com/netlogix/netlogix.assetcachinghelper
Fusion Helper to create Asset Cache Tags
https://github.com/netlogix/netlogix.assetcachinghelper
Last synced: about 1 year ago
JSON representation
Fusion Helper to create Asset Cache Tags
- Host: GitHub
- URL: https://github.com/netlogix/netlogix.assetcachinghelper
- Owner: netlogix
- Created: 2021-08-19T12:58:45.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-19T13:02:13.000Z (almost 5 years ago)
- Last Synced: 2025-03-01T00:37:51.501Z (over 1 year ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Netlogix.AssetCachingHelper
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_` This tag is currently not flushed by Neos at all
* `AssetDynamicTag_` 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.