Skip to content

Instantly share code, notes, and snippets.

View explorier's full-sized avatar
💾
Insert Disk 2

Paloma Matchett explorier

💾
Insert Disk 2
View GitHub Profile
@strarsis
strarsis / guide.md
Last active April 17, 2025 18:36
Object caching with Bedrock (and Trellis) using Redis

Object caching with Bedrock (and Trellis) using Redis

What is object caching

While nginx microcaching already solves page caching (as of static, rarely changing WordPress pages), the performance for dynamically generated pages (like WooCommerce shop pages and admin backend in general) can benefit greatly from additionally using an object cache. Object caching allows an application (in this case WordPress with its plugins, theme, etc.) to store prepared objects (mostly database queries) in a database and quickly retrieve them, therefore improving the performance of dynamic page generation. Object caching is (usually) transparent, which means that it shouldn't be noticeable by users and developers (except for the performance improvements of course).

Implementations

@JarenGlover
JarenGlover / gist:d7ffab312ea756834218
Last active August 9, 2024 06:08
Nginx - Reverse Proxy | Backend & Front End Example
upstream fuel {
# Defines a group of servers. Servers can listen on different ports.
server IP:PORT fail_timeout=0;
}
upstream frontend {
server IP:PORT fail_timeout=0;
}