Info-Bucket for PHP opcode and Key/Value Cache Alternatives

[Simple PHP Cache Class Fast PHP Caching Class](http://www.phpfastcache.com/)

Something from outside the normally closed circle of PHP cache recommendations.

“phpFastCache is a high-performance, distributed object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.”


Opcode Caches

According to the charts at List of PHP accelerators - Wikipedia, the free encyclopedia, opcache and xcache are the only 2 viable alternatives – projects that work with modern php and run in linux.


PHP: APC - Manual

APC is retired and deprecated.


PHP: OPcache - Manual

opcache has taken the place of APC as PHP’s “standard” opcode caching system.

See also:


XCache

This seems to have been created for Lighttpd, although apparently it works with Apache as well. Last update in 2014 with support for php 5.6.

Key/Value Caches

WordPress + Memcached – Scott Taylor

This is a rather interesting and insightful post about using memcached with WordPress. It describes useful details about wordpress’s built-in cache class and how to implement it. I don’t think we need this right now.

More installation and configuration details:

  • [WordPress + Memcached: How to set it up properly Maje Media](https://majemedia.com/wordpress-memcached-how-to-set-it-up-properly/)
  • [Configuring WordPress to use Memcached Matt’s Technology Blog](http://technology.mattrude.com/2011/11/configuring-wordpress-to-use-memcached/)

And a wordpress plugin that might make all of this very easy: Memcached Object Cache — WordPress Plugins

Amazon ElastiCache

Also worthy of note, since we already intend to use AWS to host these servers, is [AWS Amazon ElastiCache – in-memory cache service](https://aws.amazon.com/elasticache/).

See also:

AWS OpsWorks is a configuration management service, based on Chef. This article isn’t loading right now, and we probably don’t need this right now, but it’s good to know it’s out there.

Decisions

For now, for the linux/apache/php boilerplate installation, I’ve decided to go with opcache and memcached. For php-5.6, these require the following package installation on Amazon Linux:

sudo yum install php56-pecl-memcached php-pear php56-opcache memcached

More…

More resources that I just don’t have time to finish digesting: