Wincache extension does not work properly on IIS (its still slow |

I spent many hours working wincache, because my application in Symfony 2 runs slowly on my Windows 8 (initialization time> 2 s). Wincache solution based here https://stackoverflow.com>

Installed IIS and its in phpinfo (). But the problem is that my application is still slow. I tried to find what was wrong and it looks like reroute.ini is not loading in al, even if its in php.ini

wincache.rerouteini="C:\Program Files (x86)\iis express\PHP\v5.5\reroute.ini"

but its missing in phpinfo ()

enter image description here

I even looked at the source code on pecl and I found

#ifdef WINCACHE_TEST
/* index 21 */ STD_PHP_INI_ENTRY("wincache.rerouteini", NULL, PHP_INI_SYSTEM, OnUpdateString, rerouteini, zend_wincache_globals, wincache_globals)
/* index 22 */ STD_PHP_INI_ENTRY("wincache.olocaltest", "0", PHP_INI_SYSTEM, OnUpdateBool, olocaltest, zend_wincache_globals, wincache_globals)
#endif

What is it? Does this mean that this parameter is present only when the constant WINCACHE_TEST is true? Because it's never, because I found it too

#ifdef WINCACHE_DEBUG
# define WINCACHE_TEST
# define _ASSERT(x)   if(!(x)) { dprintalways(#x); if(IsDebuggerPresent()) { DebugBreak(); } }
#else
# define _ASSERT(x)
#endif

And the constant WINCACHE_DEBUG is commented out above in the code

/* comment following line for release builds */
/* #define WINCACHE_DEBUG */
/* #define DEBUG_DUMP_OPARRAY */

? reroute.ini(http://www.php.net/manual/en/wincache.reroutes.php). , 4x, , , , wincache PHP5.5 VC11 NTS, !

+4
2

, WinCache forums, , . .

+1

, wincache.rerouteini .

WinCache 1.3.7.1 ​​ . .ini. .

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

10 PHP, WinCache. :

  • file_exists
  • file_get_contents
  • ReadFile
  • is_writable
  • is_writeable ( is_writable)
  • is_readable
  • is_file
  • is_dir
  • Realpath

/ . :

wincache.reroute_enabled = 0

0

Source: https://habr.com/ru/post/1540095/


All Articles