<?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 => 'zh',
  ),
  'this' => 
  array (
    0 => 'install.windows.recommended.php',
    1 => 'Windows 系统下的推荐配置',
    2 => 'Windows 系统下的推荐配置',
  ),
  'up' => 
  array (
    0 => 'install.windows.php',
    1 => 'Windows 系统下的安装',
  ),
  'prev' => 
  array (
    0 => 'install.windows.php',
    1 => 'Windows 系统下的安装',
  ),
  'next' => 
  array (
    0 => 'install.windows.manual.php',
    1 => '手动安装预编译的二进制文件',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    '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">Windows 系统下的推荐配置</h2>
 <div class="sect2">
  <h3 class="title">OpCache</h3>
  <p class="para">
   强烈建议开启 OpCache。
   此扩展默认已经包含到 PHP Windows 版本中。
   它会自动编译和优化 PHP 脚本，并将它们缓存在内存中，
   这样就不会在每次加载页面时动态编译它们。
  </p>
  <p class="para">
   在 php.ini 配置中，设置
   <div class="example" id="example-1">
    <p><strong>示例 #1 推荐的 OpCache 配置</strong></p>
    <div class="example-contents screen">
<div class="cdata"><pre>
opcache.enable=On
opcache.enable_cli=On
</pre></div>
    </div>
   </div>
   然后重新启动你的 WEB 服务器。更多信息，请参阅：<a href="opcache.configuration.php" class="link">OpCache 配置</a>章节。
  </p>
 </div>
 <div class="sect2">
  <h3 class="title">WinCache</h3>
  <p class="para">
   WinCache 推荐在 IIS 下使用，尤其是在共享 Web 托管环境中或使用网络文件存储（NAS）时。

   所有 PHP 应用程序都会自动受益于 WinCache 的文件缓存功能。文件系统操作缓存在内存中。

   WinCache 还可以缓存用户对象到内存中，并在 <var class="varname">php.exe</var> 或 <var class="varname">php-cgi.exe</var>
   进程之间共享它们（在请求之间共享对象）。许多主流的 Web 应用程序都有插件、扩展或配置选项来使用 WinCache
   用户对象缓存。
   
   如果需要高性能，应该在应用程序中使用对象缓存。

   参阅：<a href="https://pecl.php.net/package/WinCache" class="link external">&raquo;&nbsp;https://pecl.php.net/package/WinCache</a>
   下载 WinCache DLL（或 <var class="filename">WINCACHE_<span class="replaceable">*</span>.tgz</var>）到 PHP
   扩展目录（<var class="filename">php.ini</var> 中的 <a href="ini.core.php#ini.extension-dir" class="link">extension_dir</a>）。

   将 <var class="filename">php.ini</var> 设置为
   <div class="example" id="example-2">
    <p><strong>示例 #2 推荐的 WinCache 配置</strong></p>
    <div class="example-contents screen">
<div class="cdata"><pre>
extension=php_wincache.dll
wincache.fcenabled=1
wincache.ocenabled=1 ; 自 wincache 2.0.0.0 起移除
</pre></div>
    </div>
   </div>
   更多信息，请参阅 <a href="wincache.configuration.php" class="link">WinCache 配置</a>
  </p>
 </div>
</div><?php manual_footer($setup); ?>