The following steps describe how to compile and build WinCache on Windows OS:
Open a command prompt which is used to build PHP
Go to the root folder where PHP sources are present
Run the command:
cscript.exe win32\build\buildconf.js
Run the command:
configure.bat --help
--enable-wincache
.
Run the command:
configure.js [all options used to build PHP] --enable-wincache
--enable-wincache
is the only extra option which is
required to ensure that WinCache extension gets built properly.
This option will build WinCache and will statically link it with PHP dll.
To build WinCache extension as a stand-alone DLL use the option
--enable-wincache=shared
.
Run the command:
nmake