Skip to content

Instantly share code, notes, and snippets.

@ChrisButterworth
Created June 22, 2018 16:14
Show Gist options
  • Save ChrisButterworth/57a29bcffb9426b8664356fbb053d676 to your computer and use it in GitHub Desktop.
Save ChrisButterworth/57a29bcffb9426b8664356fbb053d676 to your computer and use it in GitHub Desktop.
OPCache simple set up

If these variable names already exist they need updated, if they are commented out you can simply paste this at the end of the file.

as an added extra you can grab the webviewer to see the savings you've made

cd /webroot
wget https://raw.github.com/rlerdorf/opcache-status/master/opcache.php
opcache.memory_consumption=256
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.max_wasted_percentage=15
opcache.revalidate_freq=0
opcache.force_restart_timeout=300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment