Category: cache

How to Boost Your Server Performance with Varnish

Varnish Cache is an HTTP accelerator and reverse proxy developed by Danish consultant and FreeBSD core developer Poul-Henning Kamp, along with other developers at Norwegian Linpro AS. It was released in 2006. According to Pingdom.com, a company focused on web performance, in 2012 Varnish was already famous among the wo...

Creating a Cache-aware HTTP/2 Server Push Mechanism

If you’ve been reading at all about HTTP/2, then you’ve likely heard about server push. If not, here’s the gist of it: Server push lets you preemptively send an asset when the client requests another. To use it, you need an HTTP/2-capable web server, and then you just set a Link header for the asset ...

Sourcehunt September – Hacktoberfest Edition

It’s that time of year again – DigitalOcean’s Hacktoberfest is starting! It’s a month-long open source effort when people are encouraged to contribute to various open source projects (not their own!). Anyone who opens 4 pull requests (even documentation fixes count!) gets a T-shirt at the end of...

6 More Must-Do Grav Tweaks: Ready for Hacker News Traffic!

We previously looked at some essential Grav plugins with which to round off the installation of a personal blog. In this post, we’ll take a look at some additional, advanced plugins, as well as other tweaks we can apply. Related Pages Once a blog has enough posts, user retention becomes more difficult – as...

Speeding up Existing Apps with a Redis Cache

We’ve gone through the basics of Redis in PHP before, but it’s time to cover a real life use case. In this tutorial, we’ll add it to an already deployed application to give the app the appearance of speed. You can easily follow along by cloning the 0.6 release of the app. The Problem Before applying a solution, ...

Caching Hat-trick: Varnish, Memcached and PHP libraries

Previously, we looked at some common caching mechanisms we can easily utilize to make our apps faster. In this part, we’ll walk through some of the additional software that we can use with PHP for caching. Memcached Memcached is an in-memory key-value store. You can use it to store things like strings, numeric value...

Caching Hat-trick: Zend Opcache, Etags and Query Caching

In this article, we will be looking at some of the common caching techniques in PHP: Opcache, Expires Headers and Query Caching in MySQL. We’ll look at additional approaches in part 2. PHP’s Request Lifecycle Before we move on, it’s important to understand PHP’s request lifecycle. What happens behind the scene...