<?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 => 'ru',
  ),
  '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' => 'ru',
    '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>, если кеш опкодов был сброшен
   или <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>, если кеш отключён, ожидается перезапуск или перезапуск выполняется
   (смотрите <span class="function"><a href="function.opcache-get-status.php" class="function">opcache_get_status()</a></span>).
  </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); ?>