Tag Archives: Cache

Redis vs APCu 2018

Redis VS APCu Object Cache performance test 2018: is it relevant anyway? Redis is fast, but APCu is faster. Unfortunately, APCu is being pushed on the side of the road as an Object cache, and here is why.

There are 3 categories of caching systems on the server side: Memory code caching, Memory object caching, and Disk file caching. Objects can be anything though, including files. By file I mean any file: the generated HTML code that makes a page, a CSS, an image…

Continue reading Redis vs APCu 2018

Redis VS Memcached 2018

This post is about performance between Redis VS Memcached, which are in-memory, networked object cache software.

There are 3 categories of caching systems on the server side: Memory code caching, Memory object caching, and Disk file caching. Objects can be anything though, including files. By file I mean any file: the generated HTML code that makes a page, a CSS, an image…

Continue reading Redis VS Memcached 2018

Conditionally Serving WebP Images With Nginx

WebP is a next generation image format spearheaded by Google since 2013, which provides advanced compression options. While it is so much better than legacy formats, it is only supported at the moment of writing (February 2018) by Chrome, and Opera on desktops and Android (see Can I use WebP image format? for more details). As of today, Firefox is not scheduled to support WebP in future versions.

For an overview of WebP format and its shocking compression ration, see WebP: Another Google Project Behind the Scenes.

Practical solution is to serve images conditionally depending on the client browser WebP support. This recipe discusses how to do it with nginx.

Continue reading Conditionally Serving WebP Images With Nginx