1024programmer PHP WindowsCacheExtensionforPHPMore introduction

WindowsCacheExtensionforPHPMore introduction

Today the IIS team released the beta version of Windows Cache Extension 1.0 for PHP, which is a PHP accelerator used to improve the speed of PHP applications running on Windows systems. Any PHP application can use it to speed up without modifying any code. All that is required is to enable this extension in the PHP engine. Install Windows Cache Extension

Today the IIS team released the beta version of Windows Cache Extension 1.0 for PHP, which is a PHP accelerator used to improve the speed of PHP applications running on Windows systems. Any PHP application can use it to speed up without modifying any code. All that is required is to enable this extension in the PHP engine.

Install Windows Cache Extension 1.0 for PHP – Beta

Or download:

Windows Cache Extension 1.0 for PHP 5.2 – Beta
Windows Cache Extension 1.0 for PHP 5.3 – Beta

Follow the instructions in the “Using Windows Cache Extension for PHP” article to install, enable and configure this extension.

Note:

  • This extension can only be used with non-thread-safe versions of PHP
  • This extension can only be used with For PHP running on IIS in FastCGI mode
  • Windows Cache Extension 1.0 for PHP 5.3 can only be used for the x86 VC9 version of PHP5.3

Features:

  • Supports PHP 5.2 and PHP 5.3
  • Provides PHP functions to obtain cache status information

This extension contains 3 functions that can be Cache features enabled or disabled respectively:

  • PHP opcode cache – PHP is a script processing engine that reads an input stream containing text and/or PHP instructions and Produce another data stream (usually in HTML format). This means that the PHP engine on a web server must read, parse, compile and execute the PHP script for every request from the browser client. Reading, parsing, and compilation operations bring additional load to the web server’s CPU and file system, affecting the overall performance of PHP web applications. The PHP opcode (bytecode) cache is used to cache compiled script bytecodes in shared memory so that subsequent requests for the same script file can be reused by the PHP engine.
  • File cache – Even if PHP bytecode caching is enabled, the PHP engine still needs to access the script files in the file system. When PHP scripts are stored on remote UNC file shares, file operations can incur significant performance overhead. The file cache of Windows Cache Extension for PHP can cache the contents of PHP script files in shared memory, reducing the file system operations of the PHP engine.
  • Relative file path cache-PHP scripts frequently use relative paths to include or manipulate files. Every relative file path needs to be converted into an absolute file path by the PHP engine. When a PHP application uses many PHP files with relative paths, the operation of resolving relative paths to absolute paths can affect performance. Windows Cache Extension for PHP provides relative file path caching, reducing the number of conversions the PHP engine needs to do.

More information

  • Windows Cache Extension for PHP on IIS.NET
  • Using Windows Cache Extension for PHP

You can use Windows Cache Extension for PHP Forum, mailto:iisphp or leave a message after this article to ask questions, report problems or provide feature feedback and suggestions.

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/windowscacheextensionforphpmore-introduction-6/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索