Next we have to focus on another area of PHP acceleration—caching tool software. This type of software speeds up by optimizing the PHP running environment without changing any code. We can roughly call them "execution code optimization/caching tools", and you can understand that they are used to implement lower-level optimization/caching.
The following is a list of such tools that are currently commonly used. Which one has the best effect? Please test it in your own server environment:
(1) APC Alternative PHP Cache
http://pecl.php.net/package-info.php?package =APC
APC runs on Linux and FreeBSD, you need to compile and install it yourself. According to its developers, script speed can be increased by 50%-400% in their test environment. And APC is an open source project and has added PHP's PECL library, which is worth a try.
(2) Turck MMCache
http://turck-mmcache.sourceforge.net/
Turck MMCache seems to be the most popular type of software at present. It is open source and completely free. It pre-compiles and caches PHP code, and also performs certain optimizations on the PHP running environment. According to its official documentation, MMCache can significantly reduce the load on the server and increase script execution speed by 1-10 times.
MMCache is compatible with Zend Optimizer, another well-known acceleration software, but note that MMCache must be installed first (set in php.ini). In addition to speeding up PHP programs, MMCache can also encrypt PHP code.
Turck MMCache supports both Linux and Win32 platforms.
(3) PHPA the PHP Accelerator
PHPA is another popular PHP acceleration software. On its official website, there is a comparison of PHP script execution tests using PHPA, APC, and Zend Cache respectively. Its performance is slightly better than APC and slightly worse than Zend Cache.
PHPA supports Linux, FreeBSD, OpenBSD, BSDi and Solaris systems.
(4) Zend Performance Suite
Zend Performance Suite is a veteran PHP acceleration/optimization software, relying on the most well-known Zend company in the PHP field . Version 4.0 has been launched. It can provide program acceleration, content caching, file compression, download services, etc. for PHP applications. It is very powerful and has won recommendation awards from several PHP magazines—but I have to mention that it is also very expensive. The current The price is $1875.
I hope readers can test the above several acceleration software according to the server environment and choose the most suitable one, because I cannot provide a universally applicable test standard to judge which solution is the most effective. Taken together, I personally think Turck MMCache is a recommendable choice, it is free and has excellent functions.