Skip to content

通过知识获得解放,通过技术获得自由

Menu
  • 专题目录
  • 液压相关
    • 液压技术
    • 液压相邻技术
    • 液压应用
  • 计算机相关
    • 计算机和软件
    • 网络和网站技术
  • 哲学
  • 关于本站
Menu

部署wordpress的性能插件wpsupercache[0]

Posted on 2023年11月14日 by

最近在测试本站压测时,发现本站的访问速度非常慢。详细过程记录在linux下wordpress应用的性能优化实战中。

此处测试的www.fanlog.org的rps=400,另外本处的测试结果中存在Failed requests和Non-2XX responses,因此结果的准确性不够,仅供参考。本篇被网站性能的再次测试替代

虽然从17rps能够达到50rps,但是离本站最高的nginx(http下3000,https下600还相差非常远)。本站的主要瓶颈在SSL加密和mysql上的性能拥塞。当时就想到将网页的内容做成静态的,主要基于本站是发布站,基本不予直接交流。因此可以采用静态化进行性能加速。即便是静态化,也有两种方式,一种是全站的静态化(常用插件Simply Static),另外一种是网页的静态缓存,常用插件wpsupercache。

全站静态化,最为彻底,但是缺陷也很明显,就是本站内容的更行要全部运行重新生成,时间较为漫长。进而有了wpsupercache的用武之地,其本质是采用时间差,将服务器的资源在任务不繁忙的情况下,cache成静态网页,将原先的动态网页进行替换。

  • 主要设置如下:

  • 测试效果:

以下数据是autoptimize+wpsupercache一起起作用下的效果。

ab -c 500 -n 2000 https://www.fanlog.org/

即:同时运行500个请求,请求总数2000个

 

  • 跨洋传输

  • 采用BWG加持后

  • http与https的区别

欢迎回来

希望本站对你有所帮助!

如有疑问请联系info@fanlog.org
2023 年 11 月
一二三四五六日
 12345
6789101112
13141516171819
20212223242526
27282930 
« 6 月    

AI辅助 (17)

© 2025 | Powered by Superbs Personal Blog theme
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT