array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.opcache-invalidate.php', 1 => 'opcache_invalidate', ), 'up' => array ( 0 => 'ref.opcache.php', 1 => 'OPcache 関数', ), 'prev' => array ( 0 => 'function.opcache-get-status.php', 1 => 'opcache_get_status', ), 'next' => array ( 0 => 'function.opcache-is-script-cached.php', 1 => 'opcache_is_script_cached', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/opcache/functions/opcache-invalidate.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL ZendOpcache >= 7.0.0)
opcache_invalidate — キャッシュされたスクリプトを無効にする
この関数は opcode キャッシュのうち、特定のスクリプトを無効にします。
force
パラメータが指定されていないか、 false
の場合は、スクリプトの更新時刻が opcode キャッシュ時の更新時刻より新しい場合にだけ無効にします。
この関数は、インメモリキャッシュ の情報だけを無効にします。
ファイルキャッシュ の情報は無効にしません。
filename
無効にしたいスクリプトのパス
force
true
にすると、無効にする必要があるかどうかに関わらずスクリプトは無効にされます。