<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.basic.php.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'book.wincache.php',
    1 => 'WinCache',
    2 => 'Windows Cache for PHP',
  ),
  'up' => 
  array (
    0 => 'refs.basic.php.php',
    1 => 'PHP\'nin Davranışını Etkileyenler',
  ),
  'prev' => 
  array (
    0 => 'function.uopz-unset-return.php',
    1 => 'uopz_unset_return',
  ),
  'next' => 
  array (
    0 => 'wincache.setup.php',
    1 => 'Yapılandırma/Kurulum',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/wincache/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.wincache.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.wincache" class="book">
 
 <h1 class="title">Windows Cache for PHP</h1>
 

 <div id="intro.wincache" class="preface">
  <h1 class="title">Giriş</h1>
  <p class="para">
   Windows Cache Extension for PHP is a PHP accelerator that is used to increase the speed of
   PHP applications running on Windows and Windows Server. Once the Windows Cache Extension for
   PHP is enabled and loaded by the PHP engine, PHP applications can take advantage of the
   functionality without any code modifications.
  </p>
  <p class="para">
   The Windows Cache Extension includes 5 different types of caches. The following describes
   the purpose of each cache type and the benefits it provides.
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <p class="para">
     <em>PHP Opcode Cache</em> - PHP is a script processing engine, which reads
     an input stream of data that contains text and/or PHP instructions and produces another
     stream of data, most commonly in the HTML format. This means that on a web server the
     PHP engine reads, parses, compiles and executes a PHP script each time that it is requested
     by a Web client. The reading, parsing and compilation operations put additional load on the
     web server&#039;s CPU and file system and thus affect the overall performance of a PHP web application.
     The PHP bytecode (opcode) cache is used to store the compiled script bytecode in shared memory so
     that it can be re-used by PHP engine for subsequent executions of the same script.
    </p>
    <p class="para">
     Support for opcode caching was removed in <code class="literal">Wincache 2.0.0</code>, all users who
     wish to have an opcache should use the <a href="book.opcache.php" class="link">OPcache</a> extension
     that is included with PHP.
    </p>
   </li>
   <li class="listitem">
    <p class="para">
     <em>File Cache</em> - Even with the PHP opcode cache enabled, the PHP engine
     has to accesses the script files on a file system. When PHP scripts are stored on a remote
     UNC file share, the file operations introduce a significant performance overhead.
     The Windows Cache Extension for PHP includes a file cache that is used to store the content
     of the PHP script files in shared memory, which reduces the amount of file system operations
     performed by PHP engine.
    </p>
   </li>
   <li class="listitem">
    <p class="para">
     <em>Resolve File Path Cache</em> - PHP scripts very often include or operate
     with files by using relative file paths. Every file path has to be normalized to
     an absolute file path by the PHP engine. When a PHP application uses many PHP files and
     accesses them by relative paths, the operation of resolving the paths may negatively
     impact the application&#039;s performance. The Windows Cache Extension for PHP
     provides a Resolve File Path cache, which is used to store the mappings between relative
     and absolute file paths, thereby reducing the number of path resolutions that the
     PHP engine has to perform.
    </p>
   </li>
   <li class="listitem">
    <p class="para">
     <em>User Cache (available since version 1.1.0)</em> - PHP scripts can take advantage of
     the shared memory cache by using the user cache API&#039;s. PHP objects and variables can be stored in the
     user cache and then re-used on subsequent requests. This can be used to improve performance of PHP scripts
     and to share the data across multiple PHP processes.
    </p>
   </li>
   <li class="listitem">
    <p class="para">
     <em>Session Handler (available since version 1.1.0)</em> - The WinCache session handler can be used to
     store the PHP session data in the shared memory cache. This avoids file system operations for reading
     and writing session data, which improves performance when large amount of data is stored in PHP session.
    </p>
   </li>
  </ul>
 </div>

 







 







 






<ul class="chunklist chunklist_book"><li><a href="wincache.setup.php">Yapılandırma/Kurulum</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="wincache.requirements.php">Gereksinimler</a></li><li><a href="wincache.installation.php">Kurulum</a></li><li><a href="wincache.configuration.php">&Ccedil;alışma Anı Yapılandırması</a></li><li><a href="wincache.stats.php">WinCache Statistics Script</a></li><li><a href="wincache.sessionhandler.php">WinCache Session Handler</a></li><li><a href="wincache.reroutes.php">WinCache Functions Reroutes</a></li></ul></li><li><a href="ref.wincache.php">WinCache İşlevleri</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.wincache-fcache-fileinfo.php">wincache_fcache_fileinfo</a> — Retrieves information about files cached in the file cache</li><li><a href="function.wincache-fcache-meminfo.php">wincache_fcache_meminfo</a> — Retrieves information about file cache memory usage</li><li><a href="function.wincache-lock.php">wincache_lock</a> — Acquires an exclusive lock on a given key</li><li><a href="function.wincache-ocache-fileinfo.php">wincache_ocache_fileinfo</a> — Retrieves information about files cached in the opcode cache</li><li><a href="function.wincache-ocache-meminfo.php">wincache_ocache_meminfo</a> — Retrieves information about opcode cache memory usage</li><li><a href="function.wincache-refresh-if-changed.php">wincache_refresh_if_changed</a> — Refreshes the cache entries for the cached files</li><li><a href="function.wincache-rplist-fileinfo.php">wincache_rplist_fileinfo</a> — Retrieves information about resolve file path cache</li><li><a href="function.wincache-rplist-meminfo.php">wincache_rplist_meminfo</a> — Retrieves information about memory usage by the resolve file path cache</li><li><a href="function.wincache-scache-info.php">wincache_scache_info</a> — Retrieves information about files cached in the session cache</li><li><a href="function.wincache-scache-meminfo.php">wincache_scache_meminfo</a> — Retrieves information about session cache memory usage</li><li><a href="function.wincache-ucache-add.php">wincache_ucache_add</a> — Adds a variable in user cache only if variable does not already exist in the cache</li><li><a href="function.wincache-ucache-cas.php">wincache_ucache_cas</a> — Compares the variable with old value and assigns new value to it</li><li><a href="function.wincache-ucache-clear.php">wincache_ucache_clear</a> — Deletes entire content of the user cache</li><li><a href="function.wincache-ucache-dec.php">wincache_ucache_dec</a> — Decrements the value associated with the key</li><li><a href="function.wincache-ucache-delete.php">wincache_ucache_delete</a> — Deletes variables from the user cache</li><li><a href="function.wincache-ucache-exists.php">wincache_ucache_exists</a> — Checks if a variable exists in the user cache</li><li><a href="function.wincache-ucache-get.php">wincache_ucache_get</a> — Gets a variable stored in the user cache</li><li><a href="function.wincache-ucache-inc.php">wincache_ucache_inc</a> — Increments the value associated with the key</li><li><a href="function.wincache-ucache-info.php">wincache_ucache_info</a> — Retrieves information about data stored in the user cache</li><li><a href="function.wincache-ucache-meminfo.php">wincache_ucache_meminfo</a> — Retrieves information about user cache memory usage</li><li><a href="function.wincache-ucache-set.php">wincache_ucache_set</a> — Adds a variable in user cache and overwrites a variable if it already exists in the cache</li><li><a href="function.wincache-unlock.php">wincache_unlock</a> — Releases an exclusive lock on a given key</li></ul></li><li><a href="wincache.win32build.php">Building for Windows</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="wincache.win32build.prereq.php">Prerequisites</a></li><li><a href="wincache.win32build.building.php">Compiling and building</a></li><li><a href="wincache.win32build.verify.php">Verifying the build</a></li></ul></li></ul></div><?php manual_footer($setup); ?>