<?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 => 'es',
  ),
  'this' => 
  array (
    0 => 'function.opcache-is-script-cached-in-file-cache.php',
    1 => 'opcache_is_script_cached_in_file_cache',
    2 => 'Indica si un script est&aacute; en la cach&eacute; de archivos de OPCache',
  ),
  'up' => 
  array (
    0 => 'ref.opcache.php',
    1 => 'Funciones de OPcache',
  ),
  'prev' => 
  array (
    0 => 'function.opcache-is-script-cached.php',
    1 => 'opcache_is_script_cached',
  ),
  'next' => 
  array (
    0 => 'function.opcache-jit-blacklist.php',
    1 => 'opcache_jit_blacklist',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/opcache/functions/opcache-is-script-cached-in-file-cache.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-in-file-cache" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">opcache_is_script_cached_in_file_cache</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.5.0)</p><p class="refpurpose"><span class="refname">opcache_is_script_cached_in_file_cache</span> &mdash; <span class="dc-title">Indica si un script está en la caché de archivos de OPCache</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.opcache-is-script-cached-in-file-cache-description">
  <h3 class="title">Descripción</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>opcache_is_script_cached_in_file_cache</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">
   Esta función verifica si un script PHP ha sido almacenado en la caché de OPCache. Esto puede
   utilizarse para detectar más fácilmente el &quot;calentamiento&quot; de la caché para un script en particular.
   Esta función solo verifica la caché de archivos, no la caché en memoria. Para
   verificar la caché en memoria, use <span class="function"><a href="function.opcache-is-script-cached.php" class="function">opcache_is_script_cached()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.opcache-is-script-cached-in-file-cache-parameters">
  <h3 class="title">Parámetros</h3>
  <dl>
   
    <dt><code class="parameter">filename</code></dt>
    <dd>
     <span class="simpara">
      La ruta al script PHP a verificar.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.opcache-is-script-cached-in-file-cache-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="simpara">
   Devuelve <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> si <code class="parameter">filename</code> está en la caché de OPCache,
   <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> en caso contrario.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.opcache-is-script-cached-in-file-cache-seealso">
  <h3 class="title">Ver también</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.opcache-compile-file.php" class="function" rel="rdfs-seeAlso">opcache_compile_file()</a> - Compila y almacena en cach&eacute; un script PHP sin ejecutarlo</span></li>
   <li><span class="function"><a href="function.opcache-is-script-cached.php" class="function" rel="rdfs-seeAlso">opcache_is_script_cached()</a> - Indica si un script est&aacute; en el cach&eacute; de OPCache</span></li>
  </ul>
 </div>

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