Moodle Zend Opcache enabling

Re: Moodle Zend Opcache enabling

by Leon Stringer -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers

PHP reads configuration from php.ini and from other .ini files depending on the server's operating system and configuration. So it's sometimes difficult to describe exactly where changes should be made.

However from your screenshot OPcache is enabled and running so you're most of the way there. You don't need zend_extension=/full/path/to/opcache.so.

The only thing you should do is check the OPcache settings shown in your PHP info match the recommended settings:

opcache.enable = 1  opcache.enable_file_override = 0  opcache.max_accelerated_files = 10000  opcache.memory_consumption = 128...

(The link to the OPcache documentation in the Ubuntu page was to the old Moodle 2.6 page, …/26/en/OPcache. I've updated this so it links to the current version of the OPcache page).