.PHP Output Caching Files with IIS8 - Time to First Byte

I have a VPS with 4 cores and 5 GB of RAM with Windows Server 2012 and IIS8. I run a WordPress site on it with MySQL as an InnoDB database, MySQL received about 70% of my available RAM for cache / buffer, which works fine. I have Wincache enabled, output caching is enabled mainly for all .php files. My time to the first byte is 1400-1800 ms, which, in my opinion, is too slow.

I turned on output caching for all PHP files, which reduced it to 8 ms. Fine! Or so I thought ... Of course, because now it caches all PHP files, it will not load subsequent pages. This is because WordPress loads subsequent pages as a request, not as a new file.

I had to completely disable output caching for PHP files, but it seems I cannot find another solution to reduce the time to the first byte / response time. Does anyone have any good suggestions using either Wincache or Output Caching to achieve the ~ 8 ms results that I had before?

Any ready-made suggestions are also highly appreciated!

+4
source share
1 answer

, TTFB. MySQL MySQL/IIS8 MySQL. AAAA (IPv6) A (IPv4), "localhost" IPv6. MySQL (mysqlnd) PHP IPv6, -, IPv4.

TTFB 1400-1800 200-400 . . , , , .css/.js .

: "localhost" 127.0.0.1 gethostbyname ( "localhost" ), IPv4. , MySQL .

, TTFB!

+5

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


All Articles