docs icon indicating copy to clipboard operation
docs copied to clipboard

[Guide] Object caching with Bedrock (and Trellis) using Redis

Open strarsis opened this issue 4 years ago • 2 comments

Summary

Because of some demand in the roots.io discourse (like https://discourse.roots.io/t/use-redis-cache-with-bedrock-and-trellis/15001/1) I wrote a little guide for setting up object caching (Redis) with Bedrock + Trellis: https://gist.github.com/strarsis/95abe28f4761f489a8a1cc212d5c69e5 This is my first "real" technical guide, so there is probably some room for improvement.

Motivation

nginx microcaching already solves static page caching, but it isn't used for dynamic parts of the site. Object caching can dramatically increase the performance here, as with WooCommerce and the admin backend.

strarsis avatar Jan 23 '21 19:01 strarsis

Looks useful enough to me 👍 Do you want to do a PR for it?

Personally I'd prefer doing this with memcached since Trellis already installs that by default, but I don't know if the WP plugins are of equivalent functionality/maturity.

swalkinshaw avatar Jan 24 '21 16:01 swalkinshaw

@swalkinshaw: I got some feedback (someone had trouble with a step in the guide), so I need to improve the guide a bit further. Yes, I can provide a PR for this.

strarsis avatar Jan 26 '21 19:01 strarsis