简体   繁体   中英

Fast_CGI + PHP7 + NGINX - Blazing fast for cache hits, 10x slower than without any caching for cache misses

I scanned through my entire site with Screaming Frog SEO Spider and got an average speed of 0.83 URI/second with an empty cache.

With a filled cache the same run through averages 18.69 URI/second.

Without any caching I get around 9 URI/second.

I have no idea what could cause this and can't find other references to this issue on the web. This is something I've experienced with every VPS I've used Fast_CGI with NGINX on. What could cause results like this? Thanks for any leads you can give me to work with.

1) Disable Wordpress cache plugins if you have them.

2) Disable all other plugins to see if it helps.

3) Enable PHP opcache. Uncomment in your php.ini opcache.enable=1 .

4) Disable xdebug if you have it (again, in php.ini).

5) Restart nginx & php-fpm.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM