• 请不要在回答技术问题时复制粘贴 AI 生成的内容
cszchen
V2EX  ›  程序员

wordpress 怎么优化主题的性能

  •  
  •   cszchen · Jul 16, 2022 via iPhone · 2504 views
    This topic created in 1591 days ago, the information mentioned may be changed or developed.

    最近帮客户用用 wordpress 搞了个 wooecommerce 建站。被这个性能惊呆了,TTFB 能有 7-8 秒。我用 xhrpof 测了一下,竟然大部分时间花在了渲染,基本确定是主题的锅,有的函数能调用几十万次。

    不知道有没有伙伴能分享一下怎么去优化呢。wp 是一定要用的,主题也指定的。接下来肯定要做修改主题提升性能,所以想请教一下,避免踩坑

    5 replies  •  2023-02-03 20:36:31 +08:00
    googlefans
    googlefans
    Jul 17, 2022
    1
    买一个 优化过的主题
    pastor
    pastor
    Jul 17, 2022
    2
    换 hugo 玩玩?
    luojiyin87
    luojiyin87
    Jul 17, 2022
    3
    能提供一下网址 测试分析一下?
    imdgr886
    imdgr886
    Feb 3, 2023
    4
    有没有办法优化呢
    imdgr886
    imdgr886
    Feb 3, 2023
    5
    或者楼主搞个针对性的插件
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4687 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 06:31 · PVG 14:31 · LAX 22:31 · JFK 01:31
    ♥ Do have faith in what you're doing.