wincache php7.3 configuration and php7.4

wincache this php cache memory components, since August 3, 2017, almost two years to the most recent update is not due to even the most php7.2 7.3 environment are used, so this dual memory cache component is very important , also it has been concerned about the news in this regard. This morning again on the official Microsoft iis Development Forum , accidentally saw a post , it turned out a week ago, the official developers have released the latest update php7.3 and 7.4, which is really a bit surprised, after all this php cache components have stopped the development of the official, only part of former Microsoft developer in the maintenance of this project, the number may be requested before been more, we are very concerned about wincache in the future if they would maintain the problem , so they recompile dll, this is very good news for most people who use the wincache, as the role of the cache memory components, even not elaborate, because used to know.

php7.3 nts x64 configuration wincache, methods, and previous versions of the same, here even with their own configuration method, the already 10 years.

First find the site development and maintenance projects , or you need to download the latest version, even downloaded wincache-2.0.0.8-dev-7.3- nts-vc15-x64, because the environment is used 2012r2 2019 64 bits, with 64 bit version stable.

After downloading a .exe file directly extracted, there will be a few files and documents, direct copy php_wincache.dll, as is the use of this document, the path is to get to the php \ ext \. Specific methods will not elaborate configuration as the configuration released a tutorial environment before, which has been configured, posted here under their own php.ini wincache the code, even to the tail are currently posted, because the order can not just change , otherwise it will point out the problem, you only wincache part you need.

改完后打开cmd,然后net stop w3svc & net start w3svc & exit 这段命令打上就可以用了。至于是否生效和有作用,这个打开你当前环境的缓存目录,一般iis是C:\Windows\Temp,这里一般积累了大量平时服务器环境运行的文件和缓存及报错那些文件,所以要先停止服务器,把整个目录删除,然后再启动,再打开网站和测试,如果这里产生了类似92eb5ffee6ae2fec3ad71c777531578 dcce033c45cc2ce1627d55f1c5fd696 这样的文件目录,就说明wincache已经在工作,它是正常的,然后打开里面目录,会看到当前已经缓存到内存当中的wincache缓存文件,像偶的本地环境站点在\G\w\w\b ,所以会看到相应的缓存文件目录。

偶现在环境是php7.3.6和wp5.2.2,本地2012r2和远程2012r2 2016 2019都正常的,如果遇到程序后台无法登录或崩溃的情况,可以去除这个缓存。这里说明一下,为什么有redis或memcache,还要用wincache呢?因为这是两种不同类型的缓存,一个是文件和数据库的,而wincache是专门php的缓存,所以不会冲突,用它只会让你的php更快和更稳定。这也是偶多年来一直用它的原因。

Guess you like

Origin www.cnblogs.com/webkv/p/11220658.html