<?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.php',
    1 => 'opcache_is_script_cached',
    2 => 'Indica si un script est&aacute; en el cach&eacute; de OPCache',
  ),
  'up' => 
  array (
    0 => 'ref.opcache.php',
    1 => 'Funciones de OPcache',
  ),
  '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' => 'es',
    '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">Indica si un script está en el caché de OPCache</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.opcache-is-script-cached-description">
  <h3 class="title">Descripción</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">
   Esta función verifica si un script PHP ha sido almacenado en el caché de OPCache.
   Esto puede ser utilizado para detectar fácilmente las &quot;alertas&quot; del caché para
   un script en particular.
   Esta función solo verifica el caché en memoria, no el caché de ficheros.
   Para verificar el caché de ficheros, utilice
   <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">Parámetros</h3>
  <dl>
   
    <dt><code class="parameter">filename</code></dt>
    <dd>
     <span class="simpara">
      La ruta de acceso al script PHP a verificar.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.opcache-is-script-cached-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="simpara">
   Retorna <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> si el script <code class="parameter">filename</code> está presente en el
   caché en memoria 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-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-in-file-cache.php" class="function" rel="rdfs-seeAlso">opcache_is_script_cached_in_file_cache()</a> - Indica si un script est&aacute; en la cach&eacute; de archivos de OPCache</span></li>
  </ul>
 </div>

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