toumoro/tm-cloudfront
Composer 安装命令:
composer require toumoro/tm-cloudfront
包简介
this extension is designed to clear the Amazon CloudFront cache based on the speaking path of a page.
README 文档
README
This extension clears the AWS CloudFront cache based on the speaking path of a page by creating an AWS CloudFront invalidation queue based on clearCacheCmd.
Installation (TYPO3 v13)
Using Composer
- Require the extension via Composer
In your TYPO3 project root, run:
composer require toumoro/tm-cloudfront
Configuration
-
CloudFront Settings
- Add your configuration in the TYPO3 backend or in
config/system/settings.php:'EXTENSIONS' => [ 'tm_cloudfront' => [ 'apikey' => 'YOUR_AWS_KEY', 'apisecret' => 'YOUR_AWS_SECRET', 'region' => 'us-east-1', 'version' => 'latest', 'distributionIds' => '{"domain1.com":"DIST_ID_1", "domain2.com":"DIST_ID_2", "cdn.domain3.com":"DIST_ID_3", "domain4.com":"DIST_ID_4, DIST_ID_5", "domain5.com":""}' ] ]
NB: to disable cache invalidation for a specific domain, set the distribution ID to an empty string. See domain5.com in the example above.
- Add your configuration in the TYPO3 backend or in
-
Storage/CDN Mapping
- For files, set the CDN domain in the storage configuration (
domainfield).
- For files, set the CDN domain in the storage configuration (
-
TSconfig (optional)
- Add to your page configuration to customize cache commands:
distributionIds = DIST_ID_1
- Add to your page configuration to customize cache commands:
-
AWS Permissions
- The AWS user must have permission to invalidate CloudFront cache.
Usage
- Use the "Clear Cache" button in TYPO3 to trigger CloudFront invalidation.
- Invalidations are handled automatically according to your configuration.
Testing
composer install
RUNTESTS_DIR_BIN=.Build/bin/ ./Build/Scripts/runTests.sh -p 8.4 -s functional
toumoro/tm-cloudfront 适用场景与选型建议
toumoro/tm-cloudfront 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 3.87k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2021 年 05 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 toumoro/tm-cloudfront 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 toumoro/tm-cloudfront 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2021-05-12