PHP Opcache and symlinks

If you’re using automated deployments on a regular base, chances are that you are using symlinks to limit the amount of downtime to a minimum. This is a proven approach that has worked well for many years. website current -> releases/release-12 releases/release-11 releases/release-12 When time has come to deploy a new release, the release is prepared in […]

Let’s Encrypt!

Encryption is getting more and more important to the end-users. This is most definitely the case for websites that process information of those users. SSL certificates have been around for many years, but are costly and require quite some effort to install and maintain. They require a unique IP address, need to follow some sort of […]

Using RewriteMaps for better performance

Most PHP developers know Apache‘s mod_rewrite, and have likely written at least a few custom RewriteRule in .htaccess. In this post, I want to introduce you to RewriteMap, a directive that allows you to use key:value lookups in your rewriting rules.  They are easy to use, fast and very maintainable. Do keep in mind that you will need to […]

From my hand: SoundTouchPhp

So I’ve had the joys of playing around with some Bose SoundTouch 10 at work. These are Sonos-like Wifi speakers that can be controlled over the network. Turns out, these things even have a documented (!) HTTP API, allowing you to control them from your own applications, rather than Bose supplied apps. As this obviously […]

The importance of index cardinality

Today was one of these days that I learned a lot of something I already knew… index cardinality. I was working with a collegue in an attempt to optimize a project that has been acting up lately and was passed on to us. The website itself is a Drupal website with a custom module that […]