Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Activate both, WinCache and OpCache for php 5.6 to improve performance?

We're running a typo3-website on Windows Server using IIS 8.5 and php 5.6.15 via FastCGI. To improve performance and reduce db-load, we enabled the WinCache-Extension, because of it's UserCache capabilities. WinCache's OpCache is disabled, since it is stated as deprecated and OpCache is already bundled with php.

  • Does it make any sense for the purpose of performance, to enable WinCache-FileCache too, besides php's OpCode-Cache?
  • Is there any order, these caches are used, or will these cache-types compete against each other?
  • Should I better completely disable OpCache, in case of using WinCache?

Any advice would be appreciated.

like image 843
mjStallinger Avatar asked Sep 25 '22 22:09

mjStallinger


1 Answers

WinCache's file cache will cache any file opened via PHP's stream APIs. This includes the script files, as well as any file opened using the stream I/O APIs. So, yes, there is some benefit to having WinCache's file cache enabled, even though you have the Zend Opcache enabled.

like image 67
DropPhone Avatar answered Oct 03 '22 09:10

DropPhone