I frequently play around with different ways of improving WordPress performance through hosting configurations, not so much because it’s necessary but because I have fun doing it. This was one of those times… I wondered about the value of catching the front-end of a WordPress installation with Nginx but directing everything on the dashboard side of things to Apache2.
Docker Swarm is the container orchestration tool built into Docker, and while it isn’t nearly as popular as Kubernetes, it still has a lot going for it. It uses mostly the same syntax as Docker, so you can leverage your existing knowledge. To make a Swarm cluster in VirtualBox we’ll need three VMs that a) can talk to each other, b) can be accessed from your local computer, and c) can get to the Internet.
There are some exceptional tools that can be used for WordPress development that make the process way easier than it would be otherwise. I didn’t know about some of these early on in my WordPress development days, so for those of you who might not be familiar with them, I’d like to share.
WordPress uses wp_posts to store post, page, and Custom Post Type (CPT) data the wp_postmeta table for Custom Metabox data. To retrieve this data you have to read for the post plus multiple linked postmeta rows. In this post, we conquer postmeta with subqueries.
Redis is “an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams.” Translation? It makes websites run faster.
With over 50K packages in the WordPress.org plugin repository – all open source – the code within these plugins is all over the place. Into this picture enter the WordPress Plugin Boilerplate. In their own words, the Boilerplate is “a standardized, organized, object-oriented foundation for building high-quality WordPress Plugins.”