My solution below will cache all the HTML output in Redis and display it without the need to load WordPress.
If you are using Debian then just:
apt-get install redis-server
Or else, just see the installation instructions.http://redis.io/download
Using Predis as a PHP client for Redis
You need a client in order to use PHP to communicate with Redis.
I recommend Predis. Upload predis.php(http://uploads.staticjw.com/ji/jim/predis.php) to the WordPress root directory. See more about Predis on Github(https://github.com/nrk/predis/) (if you use a newer version of Predis you need also to modify the script below).
Add the code below to a new file called
index-with-redis.php and place it in the WordPress root directory.