array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.opcache-reset.php', 1 => 'opcache_reset', 2 => 'Resets the contents of the opcode cache', ), 'up' => array ( 0 => 'ref.opcache.php', 1 => 'Функції OPcache', ), 'prev' => array ( 0 => 'function.opcache-is-script-cached.php', 1 => 'opcache_is_script_cached', ), 'next' => array ( 0 => 'book.outcontrol.php', 1 => 'Output Control', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', '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); ?>

opcache_reset

(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL ZendOpcache >= 7.0.0)

opcache_resetResets the contents of the opcode cache

Опис

opcache_reset(): bool

This function resets the entire opcode cache. After calling opcache_reset(), all scripts will be reloaded and reparsed the next time they are hit. This function only resets in-memory cache, not the file cache.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns true if the opcode cache was reset, or false if the opcode cache is disabled or the restart is pending or in progress (see opcache_get_status()).

Прогляньте також