Manual:$wgHitcounterUpdateFreq

This page is a translated version of the page Manual:$wgHitcounterUpdateFreq and the translation is 67% complete.
統計とコンテンツ分析: $wgHitcounterUpdateFreq
ページ カウンターの更新頻度を設定する。
導入されたバージョン:1.2.0
除去されたバージョン:1.25.0 (Gerrit change 150699; git #90d90dad)
許容される値:(整数)
既定値:1

詳細

ページ カウンターの更新頻度を設定します。値が大きいほどデータベースの負荷を軽減できます。 値を 1 にすると、ヒットのたびにカウンターが更新されます。値を大きな値 n にすると、n 回ヒットするたびに更新されます。 Should be set to either 1 or something largish, e.g. 1000, for maximum efficiency.

ページ カウンターを完全に無効にするには、$wgDisableCounters に true を設定してください。

データベースとして sqlite を使用している場合、この設定は無視されます。

技術的な詳細

When this setting is set to a number bigger than 1, the page id of any page viewed is stored in the hitcounter table. About 1 in every ($wgHitcounterUpdateFreq)*0.25 hits, the number of entries in the hit counter table is checked. If there is more than $wgHitcounterUpdateFreq entries in the hitcounter table, then those pageviews are transfered in batch to the page_counter field (and the hitcounter table is emptied).

関連項目