简体   繁体   English

Fast_CGI + PHP7 + NGINX-快速获得高速缓存命中率,比没有高速缓存未命中率快10倍

[英]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. 我使用Screaming Frog SEO Spider扫描了整个网站,并且平均速度为0.83 URI /秒,缓存为空。

With a filled cache the same run through averages 18.69 URI/second. 使用缓存填充时,平均平均运行时间为18.69 URI /秒。

Without any caching I get around 9 URI/second. 没有任何缓存,我得到大约9 URI /秒。

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. 这是我在启用NGINX的同时使用Fast_CGI的每个VPS所经历的。 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. 1)如果有,请禁用Wordpress缓存插件。

2) Disable all other plugins to see if it helps. 2)禁用所有其他插件以查看是否有帮助。

3) Enable PHP opcache. 3)启用PHP opcache。 Uncomment in your php.ini opcache.enable=1 . 在您的php.ini opcache.enable=1取消注释。

4) Disable xdebug if you have it (again, in php.ini). 4)禁用xdebug(同样,在php.ini中)。

5) Restart nginx & php-fpm. 5)重新启动nginx和php-fpm。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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