<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/install.windows.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'install.windows.recommended.php',
    1 => 'Recommended configuration on Windows systems',
    2 => 'Recommended configuration on Windows systems',
  ),
  'up' => 
  array (
    0 => 'install.windows.php',
    1 => 'Installation on Windows systems',
  ),
  'prev' => 
  array (
    0 => 'install.windows.php',
    1 => 'Installation on Windows systems',
  ),
  'next' => 
  array (
    0 => 'install.windows.manual.php',
    1 => 'Manual installation of pre-built binaries',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'install/windows/recommended.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="install.windows.recommended" class="sect1">
 <h2 class="title">Recommended configuration on Windows systems</h2>
 <div class="sect2">
  <h3 class="title">OpCache</h3>
  <p class="para">
   It 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&#039;t compiled every time the page is loaded.
  </p>
  <p class="para">
   Set the <var class="filename">php.ini</var> to:
   <div class="example" id="example-1">
    <p><strong>Example #1 Recommended OpCache configuration</strong></p>
    <div class="example-contents screen">
<div class="cdata"><pre>
opcache.enable=On
opcache.enable_cli=On
</pre></div>
    </div>
   </div>
   And restart the web server.

   For more info, see: <a href="opcache.configuration.php" class="link">OpCache Configuration</a>
  </p>
 </div>
 <div class="sect2">
  <h3 class="title">WinCache</h3>
  <p class="para">
   It is recommended to use WinCache if using IIS, especially if in a shared
   web hosting environment or using networked file storage (NAS).

   All PHP Applications automatically benefit from WinCache&#039;s file cache feature. File system operations are cached in memory.

   WinCache also can cache user objects in memory and share them between <var class="varname">php.exe</var> or <var class="varname">php-cgi.exe</var> 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: <a href="https://pecl.php.net/package/WinCache" class="link external">&raquo;&nbsp;https://pecl.php.net/package/WinCache</a>
   to download a WinCache DLL (or <var class="filename">WINCACHE_<span class="replaceable">*</span>.tgz</var>)
   to the PHP extensions directory
   (<a href="ini.core.php#ini.extension-dir" class="link">extension_dir</a> in the <var class="filename">php.ini</var>).

   Set the <var class="filename">php.ini</var> to:
   <div class="example" id="example-2">
    <p><strong>Example #2 Recommended WinCache configuration</strong></p>
    <div class="example-contents screen">
<div class="cdata"><pre>
extension=php_wincache.dll
wincache.fcenabled=1
wincache.ocenabled=1 ; removed as of wincache 2.0.0.0
</pre></div>
    </div>
   </div>
   For more info, see:
   <a href="wincache.configuration.php" class="link">WinCache Configuration</a>
  </p>
 </div>
</div><?php manual_footer($setup); ?>