ItinerisLtd.trellis_purge_wp_rocket_cache_during_deploy

trellis-purge-kiwp-rocketache-在部署期间清除缓存

GitHub 标签 许可证

在使用 Trellis 部署 Bedrock 时清除 WP Rocket 的缓存。

要求

安装

将此角色添加到 galaxy.yml 中:

# galaxy.yml
- src: https://github.com/ItinerisLtd/trellis-purge-wp-rocket-cache-during-deploy
  version: 0.1.1 # 请检查最新版本!

运行命令:

➜ ansible-galaxy install -r galaxy.yml --force

角色变量

将此角色添加到 deploy_after 钩子

# group_vars/all/deploy-hooks.yml
# 在 https://roots.io/trellis/docs/deploys/#hooks 了解更多
deploy_after:
  - "{{ playbook_dir }}/vendor/roles/trellis-purge-wp-rocket-cache-during-deploy/tasks/main.yml"

用法

像往常一样 部署。无需特别操作。

常见问题

清除缓存后会触发缓存预加载吗?

是的,如果您启用了 缓存预加载

我可以与 trellis-purge-kinsta-cache-during-deploy 一起使用吗?

可以,这个角色与 trellis-purge-kinsta-cache-during-deploy 兼容。

看起来很棒。我在哪里可以找到更多类似的好东西?

这个包不在 wp.org 上。我在哪里可以给⭐️⭐️⭐️⭐️⭐️ 评价?

谢谢!很高兴你喜欢它。让我的老板知道有人在使用这个项目很重要。与其在 wp.org 上给出评价,不如考虑:

测试

语法检查

➜ ansible-playbook -i 'localhost,' --syntax-check tests/test.yml

作者信息

trellis-purge-wp-rocket-cache-during-deployItineris Limited 的项目,由 Tang Rufus 创建。

特别感谢 Roots 团队,正是他们的 Trellis 使这个项目成为可能。

完整的贡献者名单可以在 这里 找到。

反馈

请提供反馈! 我们希望将这个库用于尽可能多的项目。 请提交 问题,指出您喜欢或不喜欢的内容,或分叉项目并提出建议。 没有问题是太小的。

变更日志

有关最近更改的信息,请参见 CHANGELOG

许可证

trellis-purge-wp-rocket-cache-during-deployMIT 许可证 发布。

关于项目

Purge WP Rocket cache when Trellis deploys Bedrock

安装
ansible-galaxy install ItinerisLtd.trellis_purge_wp_rocket_cache_during_deploy
许可证
mit
下载
42.5k
拥有者
We’re a full-service digital marketing agency that partners with ambitious clients to help them grow