-
-
Notifications
You must be signed in to change notification settings - Fork 606
β¨ Add Redis object cache support #1589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Question: Which redis plugin do we recommand? |
|
The Redis Cache one for now, https://gist.github.com/retlehs/c2bcfedd2fac32e1c7759e2ae10a671e#wordpress-plugin-installation is going to be used for docs FYI |
This comment was marked as resolved.
This comment was marked as resolved.
|
Updated π |
swalkinshaw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π
|
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? |
|
@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? π |
|
Yes, clearing the cache solved many strange issues after deployment for me. |
|
Want to do a PR? |
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