承接 fork/craft-akamai-invalidator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

fork/craft-akamai-invalidator

Composer 安装命令:

composer require fork/craft-akamai-invalidator

包简介

Assign cache tags to pages and invalidate them on save.

README 文档

README

Assign cache tags to pages and invalidate them on save.

Features

  • Assigns a cache tag based on the entry ID to each response.
  • Automatically invalidates the cache tag of an entry on save.
  • Invalidate the whole website via the all cache tag.

Requirements

This plugin requires Craft CMS 5.0 or later, and PHP 8.2 or later.

Installation

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require fork/craft-akamai-invalidator

# tell Craft to install the plugin
./craft plugin/install akamai-invalidator

Configuration

Akamai authentication

To generate your Akamai credentials, see Create authentication credentials.

Place the .edgerc file at your Craft root.

Plugin configuration

To configure the plugin, create a file config/akamai-invalidator.php with the following options:

<?php

return [
    'invalidateOnSave' => true,
    'enableInvalidateAll' => false,
    'network' => 'staging',
    'edgeRcSection' => 'default',
    'edgeRcPath' => '@root/.edgerc',
];

Configuration options

  • invalidateOnSave — Whether the cache automatically gets invalidated on entry save
  • enableInvalidateAll — Whether all pages can be invalidated at once via a Craft cache clear option.
  • network — The Akamai network in which the invalidate takes place. Either staging or production.
  • edgeRcSection — The credentials section within .edgerc
  • edgeRcPath — The path to the .edgerc file. May use Craft Aliases.
Fork Logo

Brought to you by Fork Unstable Media GmbH

统计信息

  • 总下载量: 1.91k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 6
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固