<?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 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.opcache-is-script-cached.php',
    1 => 'opcache_is_script_cached',
    2 => 'Tells whether a script is cached in OPCache',
  ),
  'up' => 
  array (
    0 => 'ref.opcache.php',
    1 => 'OPcache Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.opcache-invalidate.php',
    1 => 'opcache_invalidate',
  ),
  'next' => 
  array (
    0 => 'function.opcache-is-script-cached-in-file-cache.php',
    1 => 'opcache_is_script_cached_in_file_cache',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/opcache/functions/opcache-is-script-cached.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.opcache-is-script-cached" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">opcache_is_script_cached</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.11, PHP 7, PHP 8, PECL ZendOpcache &gt;= 7.0.4)</p><p class="refpurpose"><span class="refname">opcache_is_script_cached</span> &mdash; <span class="dc-title">Tells whether a script is cached in OPCache</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.opcache-is-script-cached-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>opcache_is_script_cached</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$filename</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   This function checks if a PHP script has been cached in OPCache. This can be
   used to more easily detect the &quot;warming&quot; of the cache for a particular script.
   This function only checks in-memory cache, not file cache.
   In order to check file cache, use
   <span class="function"><a href="function.opcache-is-script-cached-in-file-cache.php" class="function">opcache_is_script_cached_in_file_cache()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.opcache-is-script-cached-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">filename</code></dt>
    <dd>
     <span class="simpara">
      The path to the PHP script to be checked.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.opcache-is-script-cached-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="simpara">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if <code class="parameter">filename</code> is cached in OPCache in-memory cache,
   <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> otherwise.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.opcache-is-script-cached-seealso">
  <h3 class="title">Siehe auch</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.opcache-compile-file.php" class="function" rel="rdfs-seeAlso">opcache_compile_file()</a> - Compiles and caches a PHP script without executing it</span></li>
   <li><span class="function"><a href="function.opcache-is-script-cached-in-file-cache.php" class="function" rel="rdfs-seeAlso">opcache_is_script_cached_in_file_cache()</a> - Tells whether a script is cached in OPCache file cache</span></li>
  </ul>
 </div>

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