zucommunications/rapidkit_purge
最新稳定版本:v1.2.0
Composer 安装命令:
composer require zucommunications/rapidkit_purge
包简介
A Drupal recipe to install and configure purge modules.
README 文档
README
This recipe sets up varnish purge to connect with your local varnish
How to set up
When installing the recipe, you need to provide the following information:
- Hosted environment a - The hostname for the first deployed environment.
- Hosted environment b - The hostname for the second deployed environment.
IT should be able to provide this information
How to Disable Purger
The purger configuration is set up like this:
$config['purge.plugins']['purgers'][0] : This is the local purger $config['purge.plugins']['purgers'][1] : This is the purger on the first hosted environment $config['purge.plugins']['purgers'][2] : This is the purger on the second hosted environment
So to disable a purger on an environment you can set the value to NULL.
This example disables the purger on both hosting environments, leaving the local purger active. (you would probably want this setup on local)
$config['purge.plugins']['purgers'][1] = NULL; $config['purge.plugins']['purgers'][2] = NULL;
You can programmatically configure purper configuration per environment by using the $_ENV['APP_ENV'] variable.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2025-02-18