|
Recommended configuration on Windows systemsOpCacheIt is highly recommended to enable OpCache. This extension is included with PHP for Windows. It compiles and optimizes PHP scripts and caches them in memory so that they aren't compiled every time the page is loaded. Set the php.ini to: Example #1 Recommended OpCache configuration opcache.enable=On opcache.enable_cli=On WinCacheIt is recommended to use WinCache if using IIS, especially if in a shared web hosting environment or using networked file storage (NAS). Note that WinCache is no longer supported as of PHP 8.0.0. All PHP Applications automatically benefit from WinCache's file cache feature. File system operations are cached in memory. WinCache also can cache user objects in memory and share them between php.exe or php-cgi.exe processes (share objects between requests). Many major web applications have a plugin or extension or configuration option to make use of the WinCache user object cache. If high performance is needed, use the object cache in the applications. See: » http://pecl.php.net/package/WinCache to download a WinCache DLL (or WINCACHE_*.tgz) to the PHP extensions directory (extension_dir in the php.ini). Set the php.ini to: Example #2 Recommended WinCache configuration extension=php_wincache.dll wincache.fcenabled=1 wincache.ocenabled=1 ; removed as of wincache 2.0.0.0 |