Coexistence and efficiency between ZendOpcache and XCache Zend Opcache and XCache
I have installed Zend Opcache in my blog. some bloggers have asked who should Zend Opcache and XCache be in front of php. ini, worrying about whether the two are efficient or coexist. So let's briefly describe the XCache Zend Guard Loader Zend OPcache in php. I have installed Zend Opcache in my blog. some bloggers have asked about Zend Opcache and XCache in php. who should be in front of ini and worry about the efficiency or coexistence between the two. Therefore, the sequence of XCache Zend Guard Loader Zend OPcache in php. ini is simply explained.
Problems after Zend Opcache and XCache are configured simultaneously:
XCache is very effective, but Zend Opcache has very few hits and a low hit rate. basically, Zend Opcache does not work.
When HTTPD runs out of memory, the HTTPD becomes "trivial" and the website cannot be accessed. However, you can run the free command to check that the memory is not used up (it is not clear why ).
Remove the XCache and leave only Zend Opcache. the test shows that the cache hits is normal and the hit rate is high. You can use phpinfo () or Opcache Control Panel to view the cache and hit rate.
It should be noted that XCache is not highly efficient, but not suitable for both. Note that XCache does not support using zend_extension to load xcache from version 3.0. Original article: http://xiedexu.cn/zend-opcache-xcache.htm