toumoro/tm-cloudfront 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

toumoro/tm-cloudfront

最新稳定版本:v13.0.6

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

  1. Require the extension via Composer In your TYPO3 project root, run:
    composer require toumoro/tm-cloudfront
    

Configuration

  1. 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.

  2. Storage/CDN Mapping

    • For files, set the CDN domain in the storage configuration (domain field).
  3. TSconfig (optional)

    • Add to your page configuration to customize cache commands:
      distributionIds = DIST_ID_1
      
  4. 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

统计信息

  • 总下载量: 3.79k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 5
  • 开发语言: Shell

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2021-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固