Install PHP Opcache in OS X

Install PHP Opcache in OS X

Install command

1
brew install php56-opcache

Configure Opcache

1
sudo vim /usr/local/etc/php/5.6/conf.d/ext-opcache.ini

configure content

1
2
3
4
5
6
opcache.validate_timestamps = 1 // "0" in production
opcache.revalidate_freq = 0
opcache.memory_consumption = 64
opcache.interned_strings_buffer = 16
opcache.max_accelerated_files = 4000
opcache.fast_shutdown = 1