Recently installed the php5.6, found the opcache.so extension file, so, searched for a bit,
Found that Zend Opcache has been integrated into the version of ph5.5 above, that is, excitement, no need to find
Xcache,apc,eaccelerator these caches.
PHP manual above also said a good detailed configuration file description, here no longer detailed description,
It's best to put the build-generated opcache.so and other extensions together
The basic configuration can be configured like this (php.ini file)
Zend_extension=opcache.so
Opcache.enable=1
Opcache.enable_cli=1
opcache.memory_consumption=128
Opcache.interned_strings_buffer=8
opcache.max_accelerated_files=100000
Opcache.validate_timestamps=1
opcache.revalidate_freq=7200
The above is the basic configuration, you can use, specific more advanced, according to the actual situation,
You can modify the relevant parameter settings, the manual has been made very clear
Almost anything, good use is like Tiger Tim Ji, with Bad, is a big pit.
So, if enabled, the file has been modified, the time is not yet valid,
Therefore, in order to be effective immediately, Web services can be re-used, but generally these are undesirable and will cause disruption
Opache provides opcache_invalidate (filename, true), which is now recompiled,
Opcache_reset () This is in effect before the file is generated, and if it is generated, there is no
Expires, it will not take effect.
PHP Performance Optimizations-compile-level caching