watching the world go by

PHP + mmCache on Win32

Wednesday 22nd February, 2006

Some more PHP files for those who are interested. Turck mmCache is an extension for PHP which optimizes and accelerates PHP code. In simple terms it means that the PHP interpreter does not need to compile the source every time a page is requested as an intermediate compiled state is stored, thus complex scripts execute very quickly. In real terms you can see several hundred percent performance increase in your scripts. You can also hold frequently accessed resources in a memory cache, for example if you read XML files frequently these can be cached in memory instead of using file access commands.

mmCache is no longer supported however I've found it very useful, especially on lower specification machines. Compiling under Linux is easy, just follow the instructions on the mmCache website, or if you use Debian just apt-get install mmcache. For anybody wishing to use mmCache under Windows, I've compiled a version against PHP 4.4.2 which can be downloaded here. Follow step 2 and 3 to install and configure on windows.

There appear to be unofficial patches for PHP5 however I've not tried these and haven't been able to get a version working against versions of PHP5. If you need compatibility with newer versions, I suggest you look at APC or one of the other optimizers.

I am making this available in the hope it is of use to somebody. Please note that I do not support, develop, warrant or otherwise imply that this is of use to anybody or that it even works correctly. For support please visit the Turck mmCache website.