netlogix/assetcachinghelper
Composer 安装命令:
composer require netlogix/assetcachinghelper
包简介
Fusion Helper to create Asset Cache Tags
README 文档
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.
统计信息
- 总下载量: 445
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-19