|
Post by account_disabled on Nov 29, 2023 10:49:52 GMT
您可能会发现有些人会说“具有静态 HTML 的网站加载速度更快”或“具有静态 HTML 的网站在 Google 上排名更好”。但对其中大部分内容应持“保留态度”。虽然 PHP 和数据库确实会带来更长的加载时间,但将WordPress 页面加载时间缩短到不到一秒并不困难,而且速度相当快。 您可能要问自己,拥有一个稍微快一点的静态网站 欧洲手机号码列表 比放弃 WordPress 提供的所有优势更有价值吗?此外,PHP 性能在过去五年中得到了显着提高。在我们最近的 PHP 性能测试中,我们得出的结论是,PHP 7.4 每秒可以承受的请求(事务)数量是 PHP 5.6 的三倍。 WordPress 5.0 PHP 基准测试 WordPress 5.0 您还可以通过简单地使用缓存来提供页面的静态 HTML 版本来轻松消除 PHP 和数据库延迟。这意味着每次加载页面时,它都会加载得非常快,就像在具有静态 HTML 的网站上一样。 缓存对 WordPress 网站有多大影响?在这里,我们对使用缓存之前和之后的 WordPress 博客进行了快速测试。 无缓存首先,我们在 WordPress 博客上禁用缓存的情况下运行测试我们直接了解这一点,因为 Kinsta 网站的大部分内容都是使用来自旧版Github 的提交构建的(建议阅读:git vs Github)。
|
|