Batcache | Andy Skelton


Batcache uses Memcached to store and serve rendered pages. It can also optionally cache redirects. It’s not as fast as Donncha’s WP-Super-Cache but it can be used where file-based caching is not practical or not desired. For instance, any site that is run on more than one server should use Batcache because it allows all servers to use the same storage.

Development testing showed a 40x reduction in page generation times: pages generated in 200ms were served from the cache in 5ms. Traffic simulations with Siege demonstrate that WordPress can handle up to twenty times more traffic with Batcache installed.

Batcache is aimed at preventing a flood of traffic from breaking your site. It does this by serving old pages to new users. This reduces the demand on the web server CPU and the database. It also means some people may see a page that is a few minutes old. However this only applies to people who have not interacted with your web site before. Once they have logged in or left a comment they will always get fresh pages.

Possible future features:

  • Comments, edits, and new posts will trigger cache regeneration
  • Online installation assistance
  • Configuration page
  • Stats


  1. Get the Memcached backend working. See below.

  2. Upload advanced-cache.php to the /wp-content/ directory

  3. Add this line the top of wp-config.php to activate Batcache:

    define(‘WP_CACHE’, true);

  4. Test by reloading a page in your browser several times and then viewing the source. Just above the </head> closing tag you should see some Batcache stats.

  5. Tweak the options near the top of advanced-cache.php

  6. Optional Upload batcache.php to the /wp-content/plugins/ directory.

Memcached backend

  1. Install memcached on at least one server. Note the connection info. The default is

  2. Install the PECL memcached extension and Ryan’s Memcached backend 2.0. Use the 1.0 branch if you don’t have or can’t install the PECL extension.

Plugin author

Andy Skelton

Plugin official website address
If you encounter problems in using the Batcache plugin, you can comment below, and I will try my best to help you solve the problem

Leave a Comment

Your email address will not be published.