<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.opcache.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.opcache-reset.php',
    1 => 'opcache_reset',
    2 => '重置字节码缓存的内容',
  ),
  'up' => 
  array (
    0 => 'ref.opcache.php',
    1 => 'OPcache 函数',
  ),
  'prev' => 
  array (
    0 => 'function.opcache-jit-blacklist.php',
    1 => 'opcache_jit_blacklist',
  ),
  'next' => 
  array (
    0 => 'book.outcontrol.php',
    1 => '输出控制',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/opcache/functions/opcache-reset.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.opcache-reset" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">opcache_reset</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8, PECL ZendOpcache &gt;= 7.0.0)</p><p class="refpurpose"><span class="refname">opcache_reset</span> &mdash; <span class="dc-title">重置字节码缓存的内容</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.opcache-reset-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>opcache_reset</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   该函数将重置整个字节码缓存。在调用 <span class="function"><strong>opcache_reset()</strong></span>
   之后，所有的脚本将会重新载入并且在下次命中的时候重新解析。此函数仅重置内存中的缓存，不会重置文件缓存。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.opcache-reset-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.opcache-reset-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   如果重置字节码缓存成功，则返回 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>；如果字节码缓存被禁用或等待重启或正在重启（参阅 <span class="function"><a href="function.opcache-get-status.php" class="function">opcache_get_status()</a></span>），则返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.opcache-reset-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.opcache-invalidate.php" class="function" rel="rdfs-seeAlso">opcache_invalidate()</a> - 废除脚本缓存</span></li>
   <li><span class="function"><a href="function.opcache-get-status.php" class="function" rel="rdfs-seeAlso">opcache_get_status()</a> - 获取缓存的状态信息</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>