ItinerisLtd.trellis_purge_wp_rocket_cache_during_deploy
trellis-purge-wp-rocket-cache-during-deploy
This tool clears the cache from WP Rocket when Trellis deploys Bedrock.
- Requirements
- Installation
- Role Variables
- Usage
- FAQs
- Testing
- Author Information
- Feedback
- Change log
- License
Requirements
Installation
To install this feature, add the following to your galaxy.yml
file:
# galaxy.yml
- src: https://github.com/ItinerisLtd/trellis-purge-wp-rocket-cache-during-deploy
version: 0.1.1 # Check for the latest version!
Then run:
➜ ansible-galaxy install -r galaxy.yml --force
Role Variables
To use this feature, add it to the deploy_after
hook:
# group_vars/all/deploy-hooks.yml
# Learn more at https://roots.io/trellis/docs/deploys/#hooks
deploy_after:
- "{{ playbook_dir }}/vendor/roles/trellis-purge-wp-rocket-cache-during-deploy/tasks/main.yml"
Usage
You can simply deploy as normal. No extra steps are needed.
FAQs
Does it trigger cache preload after purge?
Yes, it will if you have enabled cache preload.
Can I use it together with trellis-purge-kinsta-cache-during-deploy
?
Yes, it works with trellis-purge-kinsta-cache-during-deploy.
It looks awesome. Where can I find more like this?
- Check out articles on Itineris' blog
- Explore more projects on Itineris' GitHub profile
- Follow @itineris_ltd and @TangRufus on Twitter
- Hire Itineris to create your next great website
This package isn't on wp.org. Where can I give a ⭐️⭐️⭐️⭐️⭐️ review?
Thanks for your support! To help us out, consider:
- Tweet something good about it and mention @itineris_ltd
- Star this Github repo
- Watch this Github repo
- Write blog posts
- Submit pull requests
- Hire Itineris
Testing
Syntax Check
To run a syntax check, use:
➜ ansible-playbook -i 'localhost,' --syntax-check tests/test.yml
Author Information
This project, trellis-purge-wp-rocket-cache-during-deploy, is developed by Itineris Limited and created by Tang Rufus.
Special thanks to the Roots team for making this project possible with Trellis.
You can find the complete list of contributors here.
Feedback
We welcome your feedback! Help us improve this library for all users. Please submit an issue with your thoughts, or fork the project and suggest changes. No issue is too minor!
Change log
Refer to the CHANGELOG for updates on recent changes.
License
This project, trellis-purge-wp-rocket-cache-during-deploy, is licensed under the MIT License.
Purge WP Rocket cache when Trellis deploys Bedrock
ansible-galaxy install ItinerisLtd.trellis_purge_wp_rocket_cache_during_deploy