当社のユーザーの1人が、他のサイトがフッターにクエリ数とページ読み込み時間をどのように表示しているか尋ねました。これはサイトのフッターでよく見られ、「64 queries in 1.248 seconds」のように表示されることがあります。この記事では、WordPressでクエリ数とページ読み込み時間を表示する方法を説明します。
Used to store interaction and conversion data for campaigns in conjunction with Revenue Attribution.
1 year
_gat_omTracker*
Set, controlled and used by Google Analytics to collect and store data and then send that data to Google Analytics. OptinMonster provides the name if there is no existing tracker found on that page.
-
omCountdown-{id}-{elementId}
Used for countdown elements {elementId} in campaigns {id} to determine when it should complete.
-
om-{id}-closed / omSlideClosed-{id}
Used specifically with slide-in campaigns {id} to determine if it has been closed or not by a visitor.
30 days
om-success-cookie / omSuccessCookie
Used to determine if a visitor has successfully opted in to any campaign on your site to unlock content when using our Content Locking feature.
365 days
om-success-{id} / omSuccess-{id}
Used to determine if a visitor has successfully opted in to a campaign with the ID of {id} on your site.
365 days
omSeen-{id}
Used to determine if a visitor has been shown a campaign by the slug.
30 days
om-{id}
Used to determine if a visitor has interacted with a campaign ID of {id} on your site.
30 days
_omappvs
Used to determine when a new visitor becomes a returning visitor.
Pattrick
読み込み時間だけを表示するにはどうすればよいですか?
WPBeginnerサポート
echoをget_num_queriesの後に移動する必要があります
管理者
Aidan
timer_stop() 関数は、クエリの完了にかかる時間ではなく、ページの読み込み時間のみを測定することであることを明確にする必要があります。
これらはしばしば関連していますが、コードの提示方法によっては、クエリが常に速度の問題に関連しているように見え、実際にはそうでない場合が多いです。
ショーン・ドノバン
プラグインが 10 個ほど動作している WordPress サイトで、典型的なクエリの数を知っておくと役立つでしょう…
編集スタッフ
プラグインごとに異なるため、一概には言えません。バックエンドで完全に動作するプラグインを10個使用すれば、フロントエンドの読み込みにクエリは追加されません。あるいは、フロントエンドに大量のクエリを追加する、ひどくコーディングされたプラグインを10個使用することもできます。
管理者
Thoriq
とても簡単ですね、このヒントを共有してくれてありがとうございます。