Skip to content

Instantly share code, notes, and snippets.

@joshkoenig
Last active September 26, 2016 18:49
Show Gist options
  • Save joshkoenig/f071f1ebd3674739e0d9f65ef45794ca to your computer and use it in GitHub Desktop.
Save joshkoenig/f071f1ebd3674739e0d9f65ef45794ca to your computer and use it in GitHub Desktop.
object cache stub
<?php
# Engage LCache object caching system.
# We use a 'require()' here because in PHP 5.5+ changes to symlinks
# are not detected by the opcode cache, making it frustrating to deploy.
#
# More info: http://codinghobo.com/opcache-and-symlink-based-deployments/
#
$lcache_path = dirname( realpath( __FILE__ ) ) . '/plugins/wp-lcache/object-cache.php';
require( $lcache_path );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment