Opcache: Difference between revisions
Created page with "Opcache settings for the Zend Engine are notoriously undocumented. So we try to choose good defaults for QualityBox. The book 'Scaling PHP' has some good explanations<ref>ht..." |
No edit summary |
||
| Line 10: | Line 10: | ||
sed -i s/opcache.validate_timestamps=1/opcache.validate_timestamps=0/ $myini | sed -i s/opcache.validate_timestamps=1/opcache.validate_timestamps=0/ $myini | ||
sed -i s/\;opcache.fast_shutdown=0/opcache.fast_shutdown=1/ $myini | sed -i s/\;opcache.fast_shutdown=0/opcache.fast_shutdown=1/ $myini | ||
apachectl -k graceful | |||
</source> | |||
You can even turn off the opcache if you want | |||
<source lang="bash"> | |||
# as root | |||
myini=/etc/php.ini | |||
sed -i s/opcache.enable=1/opcache.enable=0/ $myini | |||
sed -i s/opcache.enable_cli=1/opcache.enable_cli=0/ $myini | |||
apachectl -k graceful | apachectl -k graceful | ||
</source> | </source> | ||