cat

已創建論壇回覆

正在查看 10 個帖子:21-30 (共 86 個帖子)
  • 作者
    帖子
  • cat
    • 文章數量: 108
    發帖數:143
    樓主
    @429456968

    初步檢查,發現原因可能在 bbpress 身上,安裝這個插件之後,每個頁面都會被自動請求兩次

    兩次請求 headers 內容有少許區別

    一次是

    accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8

    一次是

    accept:image/webp,image/apng,image/*,*/*;q=0.8

    好像是重複請求了一次,和 webp 格式有關?

    卸載這個插件之後就正常,每個頁面只會加載一次,可是這個插件不能不裝啊,咋辦

    cat
    • 文章數量: 108
    發帖數:143
    樓主
    @429456968

    會不會因為每個頁面都被請求了兩次所以才卡,這是不是一個 bug 啊

    cat
    • 文章數量: 108
    發帖數:143
    樓主
    @429456968

    我看了下貴站也有這兩個文件啊,而且結構都一模一樣

    「https://bbs.weixiaoduo.com/forum/17754」

     

    TTFB 時間最長的也是這兩個文件

    cat
    • 文章數量: 108
    發帖數:143
    樓主
    @429456968

    上傳了頭像了,還是一樣的慢

    cat
    • 文章數量: 108
    發帖數:143
    樓主
    @429456968

    那個 27 好像是論壇版塊 ID,這個是新版塊,也有同樣的文件

    https://51findbook.com/forums/forum/264

    cat
    • 文章數量: 108
    發帖數:143
    樓主
    @429456968

    首頁的 TTFB 時間特別長,網上查了下,都説是 Google 字體、表情或者連接了海外服務器之類的常規原因,我現在已經幾乎不連接任何海外服務器了 (除了 cdn),為什麼 TTFB 還是這麼大呢

    cat
    • 文章數量: 108
    發帖數:143
    樓主
    @429456968

    「https://bbs.weixiaoduo.com/topic/17527」

    我是不是也要把頭像的時間戳去掉,我去試試

    cat
    • 文章數量: 108
    發帖數:143
    樓主
    @429456968
    WP 版本:
    [?]
    4.9.8
    WP 多站點:
    [?]
    –
    PHP 內存限制:
    [?]
    512 MB

    avada 系統狀態顯示這樣就算 512M 設置成功了吧

     

    cat
    • 文章數量: 108
    發帖數:143
    樓主
    @429456968
    <?php
    /**
     * The base configuration for WordPress
     *
     * The wp-config.php creation script uses this file during the
     * installation. You don't have to use the web site, you can
     * copy this file to "wp-config.php" and fill in the values.
     *
     * This file contains the following configurations:
     *
     * * MySQL settings
     * * Secret keys
     * * Database table prefix
     * * ABSPATH
     *
     * @link https://codex.wordpress.org/Editing_wp-config.php
     *
     * @package WordPress
     */
    
    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('WP_CACHE', true);
    define( 'WPCACHEHOME', '/www/wwwroot/51findbook_com/wp-content/plugins/wp-super-cache/' );
    define('DB_NAME', 'sql_51findbook_c');
    
    /** MySQL database username */
    define('DB_USER', 'sql_51findbook_c');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'hybsMMmdRp3aKYJL');
    
    /** MySQL hostname */
    define('DB_HOST', 'localhost');
    
    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8mb4');
    
    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
    
    /**#@+
     * Authentication Unique Keys and Salts.
     *
     * Change these to different unique phrases!
     * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
     * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
     *
     * @since 2.6.0
     */
    define('AUTH_KEY',         'jA(jV+PjcGu@NGx|.1zYb?+q:/Jb=>ztCHHaKA)Oj7Xu;M?$A 1[x~]iKF>6m?[A');
    define('SECURE_AUTH_KEY',  '2sr{P/O)a>~D*-NT,k,CcX)#o-un~IPM&!s>xK* v,|j!oqdbSG#/,i&4n3XH,,k');
    define('LOGGED_IN_KEY',    'Ijmx-eez+by~Wp{LheND>apoR>!$RKHx{[R#UgIUGG%FGDSWS$U0}N4K7@jh 3rk');
    define('NONCE_KEY',        'eUD|:/>_LQ=u

    q^;<3:I |l6Ankt-T3!OrWgKgS.lIH@0lmnbs~yI>h)$!D]rJ7o’);
    define(‘AUTH_SALT’, ‘M.vC.$+n87|:H j8%cTwO)7)lOV;hV<Y6nDcFimt)2[9d/VFkjYm DR^hyc[02′);
    define(‘SECURE_AUTH_SALT’, ‘:hPL%62N9O8SU.QY(,K4B[0cxqO~dj/;*?E.y!A+_UeR10W-q^3VyO5MM:@[b5kX’);
    define(‘LOGGED_IN_SALT’, ‘l0oV^2VXv#I!SHGqHNZklRaMSj#!>)%$YtM51wBPO=j>nl{::(QbRSGKL4jP)PiO’);
    define(‘NONCE_SALT’, ‘IH>sspnda5>/G|7bt)2i]E}J!wh)cGyfg9+Ln=y^nB&nczlP0vs^7Ux6Z?Y.c ‘);

    define(‘AUTOMATIC_UPDATER_DISABLED’, true );//關閉自動更新

    /**#@-*/

    /**
    * WordPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each
    * a unique prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix = ’51findbook_’;

    /**
    * For developers: WordPress debugging mode.
    *
    * Change this to true to enable the display of notices during development.
    * It is strongly recommended that plugin and theme developers use WP_DEBUG
    * in their development environments.
    *
    * For information on other constants that can be used for debugging,
    * visit the Codex.
    *
    * @link https://codex.wordpress.org/Debugging_in_WordPress
    */
    define(‘WP_DEBUG’, false);

    /* That’s all, stop editing! Happy blogging. */

    /** Absolute path to the WordPress directory. */
    if ( !defined(‘ABSPATH’) )
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . ‘wp-settings.php’);
    `

    沒有找到 「請不要繼續編輯」 這句話呢

    cat
    • 文章數量: 108
    發帖數:143
    樓主
    @429456968

     

    opcache 之前安裝過了,之前還安裝了 redis,這個沒有影響吧

正在查看 10 個帖子:21-30 (共 86 個帖子)