Skip to content

Instantly share code, notes, and snippets.

@Swop
Created June 26, 2013 19:48
Show Gist options
  • Save Swop/5870975 to your computer and use it in GitHub Desktop.
Save Swop/5870975 to your computer and use it in GitHub Desktop.
Enable and configure OPCache in PHP 5.5
# Enable OPCache
zend_extension=/path/to/lib/php/extensions/no-debug-non-zts-20121212/opcache.so
# OPCache settings
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
# If the application (or the framework it is built on) only uses annotations at development time
opcache.save_comments=0
# Alternative to APC data cache : https://github.com/krakjoe/apcu (or Memcached)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment