Conversation
Member
|
Question: Which redis plugin do we recommand? |
Member
Author
|
The Redis Cache one for now, https://gist.github.com/retlehs/c2bcfedd2fac32e1c7759e2ae10a671e#wordpress-plugin-installation is going to be used for docs FYI |
tangrufus
reviewed
Aug 5, 2025
This comment was marked as resolved.
This comment was marked as resolved.
Member
Author
|
Updated 👍 |
Contributor
|
I use this - name: Flush cache/object-cache (as with Redis)
command: wp cache flush
args:
chdir: "{{ deploy_helper.current_path }}"Would this be helpful? |
Member
Author
|
@strarsis Thanks for bringing that up! I think that might be helpful for us to add to the deployment process regardless of object cache being setup on a site? 👀 |
Contributor
|
Yes, clearing the cache solved many strange issues after deployment for me. |
Member
Author
|
Want to do a PR? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds native Redis support to Trellis 🎉
Redis configuration incorporated from @jasonsbarr's https://github.com/jasonsbarr/trellis-redis community role
TODO
Configuration examples
FastCGI page caching + Redis object caching:
Backward Compatible (Unchanged)
Existing configurations work unchanged:
Multiple Sites with Isolated Redis Databases
Full examples
Detailed Basic Configurations
FastCGI Cache Only (Default)
Redis Object Cache Only
For sites that need object caching without page caching:
Multiple Sites
Isolated Redis Databases
Each site uses a different Redis database:
Mixed Cache Strategies
Different caching approaches per site:
Advanced Redis Configurations
Custom Redis Settings
Memcached Alternative
Using Memcached instead of Redis:
Global Redis Configuration
Customize Redis server settings in
group_vars/all/main.yml:Increase Memory
Enable Password Protection
Enable Persistence
Custom Configuration