Caching Hat-trick: Varnish, Memcached and PHP libraries

Written by Sitepoint - - Aggregated on Monday July 13, 2015
Tags: performance, Performance & Scaling, PHP, BrunoS, cache, caching, doctrine, memcached, OOPHP, varnish

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 values, objects and arrays.

Installing Memcached

You can execute the command below to install memcached on ubuntu or other debian based OS:

sudo apt-get install memcached

To make it work with PHP, you also need to install the PHP extension:

sudo apt-get install php5-memcached

To check if memcached is working, look for ‘memcached’ in the output returned when you call the phpinfo() method from a page. You should see something similar to the following:

Continue reading %Caching Hat-trick: Varnish, Memcached and PHP libraries%


« WP API and OAuth – Using WordPress … - Sitepoint

Symfony blog - A month of Symfony Documentation #7 … »