サーバー上のCMS(WordPress)でパフォーマンスが低下しています。
走ったSHOW STATUS LIKE 'Qcache%';
結果:
Variable_name Value
Qcache_free_blocks 0
Qcache_free_memory 0
Qcache_hits 0
Qcache_inserts 0
Qcache_lowmem_prunes 0
Qcache_not_cached 0
Qcache_queries_in_cache 0
Qcache_total_blocks 0
ゼロの値は良くないと思います。これらの値が大丈夫かどうか誰かが知っていますか?そうでない場合、MySQLと比較してサイトのパフォーマンスを向上させる方法について何か推奨事項はありますか?
ありがとう。
修正
上記のコマンドを実行する前に、を実行しましたSHOW VARIABLES LIKE 'have_query_cache';
。
結果:
Variable_name Value
have_query_cache YES
修正第2条
それから私は走ったSHOW VARIABLES LIKE 'query_cache%';
結果:
Variable_name Value
query_cache_limit 1048576
query_cache_min_res_unit 4096
query_cache_size 0
query_cache_type ON
query_cache_wlock_invalidate OFF
修正第3条
それから私は走ったSHOW VARIABLES LIKE 'log_slow_queries';
結果:
Variable_name Value
log_slow_queries OFF