Php windows cache extension

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

php / pecl-caching-wincache Public archive

Windows Cache Extension for PHP

License

php/pecl-caching-wincache

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Читайте также:  What is java tea

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Bug Fix: Don't copy the key name in zvcache if there isn't a key name.

Git stats

Files

Failed to load latest commit information.

README.TXT

ETW Tracing & Manifest file: ---------------------------- As of May 26, 2015, there is no mechanism to have the Win32 build environment call the $(MC) command with the right parameters against the ETW Manifest file. So, if you make changes to the ETW manifest file, you'll need to hand-execute the $(MC) command with the right parameters, and check in the changed files. Command to execute (in the pecl\wincache directory): mc -um -e h -h .\ -r .\ wincache_etw.man Files generated by 'mc': wincache_etw.h wincache_etw.rc MSG00001.bin wincache_etwTEMP.BIN To register the manifest, open an admin cmd window, and execute the following command: wevtutil im wincache_etw.man If you've previously registered a manifest, you'll have to unregister the manifest, and then re-register it. wevtutil um wincache_etw.man wevtutil im wincache_etw.man To capture ETW traces, you can create a log profile with logman: logman create trace wincache_etw -p "" -o c:\temp\wincache_etw logman start wincache_etw logman stop wincache_etw tracerpt wincache_etw_000001.etl -import wincache_etw.man You'll need to copy the wincache_etw.man to the machine where you're executing wincache, and wherever you're running tracerpt.exe.

About

Windows Cache Extension for PHP

Источник

WinCache Extension for PHP

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.

Increase PHP application performance on Windows by caching PHP bytecode in memory

Windows Cache Extension for PHP stores the PHP bytecode, the compiled version of the PHP script, in memory making it available when subsequent executions of the same script are needed helping to increase the overall PHP application performance. The use of Windows Cache Extension for PHP allows the PHP bytecode to be generated only once and to be reused each time the same PHP script is executed.

Reduce file system I/O overhead by caching the PHP scripts in memory

Windows Cache Extension for PHP helps to reduce the latency of file operations when PHP scripts are stored on remote UNC file shares. Windows Cache Extension for PHP includes a file system 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.

Leverage the User Cache API’s to further improve the execution speed of PHP scripts

Windows Cache Extension provides user cache API’s, that can be used by PHP scripts to store PHP objects and variables in shared memory. This way PHP scripts may improve the execution speed by storing processed data in the cache and then using it in subsequent requests instead of re-creating the data on every request.

Avoid redundant mapping for absolute paths by using relative file path cache

Windows Cache Extension for PHP caches the relation between relative and absolute file paths, reducing the number of relative path resolutions performed by the PHP engine. PHP applications that use many relative paths would perform faster given the conversion to absolute paths is performed only once.

Features

  • PHP 5.2, PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, PHP 7.0 and PHP 7.1 support
  • Configurable file cache
  • Configurable PHP opcode cache
  • User Cache API’s
  • File change notification support
  • WinCache handler for PHP sessions
  • Relative file path cache
  • PHP functions to obtain information about the cache status

Download WinCache

  • WinCache 1.1 for PHP 5.2 — x86 installer
  • WinCache 1.3 for PHP 5.3 — x86 installer
  • WinCache 1.3 for PHP 5.4 — x86 installer
  • WinCache 1.3 for PHP 5.5 — x86 installer
  • WinCache 1.3 for PHP 5.6 — x86 installer
  • WinCache 2.0 for PHP 7.0 — x86 installer | x64 installer
  • WinCache 2.0 for PHP 7.1 — x86 installer | x64 installer
  • WinCache Source Code
  • This site is managed for Microsoft by Neudesic, LLC. | © 2023 Microsoft. All rights reserved.
  • Privacy Statement
  • Terms of Use
  • Contact Us
  • Hosted on Microsoft Azure
  • Advertise with Us
  • Manage cookies
  • California Consumer Privacy Act (CCPA) Opt-Out Icon

Источник

Introduction

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.

The Windows Cache Extension includes 5 different types of caches. The following describes the purpose of each cache type and the benefits it provides.

  • PHP Opcode Cache — 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’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. Support for opcode caching was removed in Wincache 2.0.0 , all users who wish to have an opcache should use the OPcache extension that is included with PHP.
  • File Cache — 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.
  • Resolve File Path Cache — 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’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.
  • User Cache (available since version 1.1.0) — PHP scripts can take advantage of the shared memory cache by using the user cache API’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.
  • Session Handler (available since version 1.1.0) — 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.

User Contributed Notes

Источник

Оцените статью