21. Zend OPcache
• opcache.validate_timestamps = 1
• opcache.revalidate_freq = 0
• opcache.fast_shutdown = 1
When this is enabled, PHP will check the file
timestamp per your opcache.revalidate_freq value.
秒
All you need to know is turn this on.
production 則關掉
22. Zend OPcache
延伸閱讀
• Why Every PHP Application Should Use an
OpCache
• Best Zend OpCache Settings/Tuning/Config
• Understanding OpCache
• PHP’s Zend Opcache Config & Web Viewer