Wincache extension is not working on IIS properly (its still slow| Wincache extension is not working on IIS properly (its still slow| symfony symfony

Wincache extension is not working on IIS properly (its still slow|


I had the same problem, so I asked on the WinCache forums and it turns out the function reroute function has been removed for a while, without them updating the documentation. Too bad.


Yes, the wincache.rerouteini setting was disabled very early on for app compat reasons.

However, in WinCache 1.3.7.1 a new form of reroute support has been added. It no longer takes a separate .ini file. Reroutes are on by default.

php 5.4: http://sourceforge.net/projects/wincache/files/development/wincache-1.3.7.1-dev-5.4-nts-vc9-x86.exe/download php 5.5: http://sourceforge.net/projects/wincache/files/development/wincache-1.3.7.1-dev-5.5-nts-vc11-x86.exe/download php 5.6: http://sourceforge.net/projects/wincache/files/development/wincache-1.3.7.1-dev-5.6-nts-vc11-x86.exe/download

This private wraps 10 PHP functions which can benefit from looking in the WinCache file cache first. The functions are:

  • file_exists
  • file_get_contents
  • filesize
  • readfile
  • is_writable
  • is_writeable (alias for is_writable)
  • is_readable
  • is_file
  • is_dir
  • realpath

Reroute/detour is on by default. If you do need to turn it off:

wincache.reroute_enabled=0