uTools-Manuals/docs/php/opcache_reset.html
2019-04-08 23:22:26 +08:00

52 lines
2.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>重置字节码缓存的内容</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><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, 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="methodparam">void</span>
) : <span class="type">boolean</span></div>
<p class="para rdfs-comment">
该函数将重置整个字节码缓存。
在调用 <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="para">
如果字节码缓存被重置成功,则返回 <strong><code>TRUE</code></strong>;如果字节码缓存被禁用,则返回 <strong><code>FALSE</code></strong>
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.opcache-reset-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="opcache_invalidate.html" class="function" rel="rdfs-seeAlso">opcache_invalidate()</a> - 废除脚本缓存</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>