Building a Scalable Resiliant WP Setup

Scaling with hardware alone is expensive. We’ve worked with a few high traffic sites and a lot of demanding ecommerce/WooCommerce sites. The way we’ve scaled those is by testing the code, optimising database calls, optimising the database itself and implemented full page caching. Here’s a few tips to get you started Use nginx instead of … Read more

Developing WordPress on Kubernetes

To develop wordpress pages on Kubernetes, there are two types of tools you might want to use: 1. Dev Tools for Kubernetes Workflow There are a couple of dev tools for building applications directly on top of Kubernetes: ksync: https://github.com/vapor-ware/ksync (basic code sync) DevSpace: https://github.com/covexo/devspace (real-time code sync) Skaffold: https://github.com/GoogleContainerTools/skaffold (continuous deployment) Draft: https://github.com/Azure/draft (continuous … Read more

Why can’t I swap a DB in a WP install? [closed]

Reasons this might happen: When WP checks the tables exist and they don’t If the DB connection fails The database is unreachable A DESCRIBE query on the tables fails, be it permissions or access based If there is an error recorded in the wpdb object while setting up initial variables in wp_set_wpdb_vars When ms_load_current_site_and_network returns … Read more

Connect Second Database to WordPress

I have found that the following works for connecting the database via the theme’s functions.php file. I placed this code snippet at the end of the existing code in the file. Even though the fatal error threw several line errors when trying to access the site, it only came down to wpdb having an extra … Read more