WP DB Cache vs. WP SuperCache

Listen to article

ほとんどのブロガーは、WP を動的にキャッシュし、静的ページに変換してデータベースへの繰り返しクエリを回避する WordPress プラグインである WP SuperCache に馴染みがあります。その効果は非常に高いものの、このアプローチにはいくつかの欠点がありました。そして、より新しい WP DB Cache があります。

WP‑SuperCache と DB‑Cache の利点と欠点を分かりやすくまとめましたので、どちらのプラグインがブログにとってより適しているかをご確認ください。

WP SuperCache

  • キャッシュされた各ページの静的バージョンを作成するため、ブログのページ数に応じて多くのウェブスペースを消費しやすくなります(タグ、アーカイブ、ページ分割されたコメントも別々のページになることを忘れないでください)。WP‑SuperCache が大規模なブログで 300 MB 以上のウェブスペースを簡単に消費するのを見たことがあります。
  • 単一ページへの急激なトラフィック増(Dugg、SlashDot、StumbleUpon など)を経験するブログに非常に効果的です。対象ページは一定期間自動的にキャッシュされ、そのページはデータベースクエリをすべて省いた静的 HTML を提供します(ただし、そのページで訪問者が多数コメントした場合は除きます)。
  • 追加機能として Lock Down は、訪問者のコメントで頻繁に更新される高トラフィックページに保護層を追加します。この機能は新しいコメントの表示を遅らせ、その期間は単一の静的ページだけを提供します。
  • WP‑Mobile と併用するとページ配信に問題が生じることがあります。ブログのホームページのモバイル版がキャッシュされ、静的ページとして配信されることがあります。
  • 古いページが残ることがあります。ページの内容が編集されない限りキャッシュは更新されません。そのため、サイドバーに新しいコンテンツが追加されてもサイドバーが古いままになることがあります。

WP DB Cache

  • ページ全体を静的化するのではなく、データベースクエリをキャッシュします。すべてのページでデータベースクエリ数を削減しますが、すべてではありません。
  • 個別のページを静的ファイルとして保存しないため、キャッシュに多くのウェブスペースを使用しません。
  • 単一ページへの急激なトラフィック増加(DiggやSlashdotのフラッドなど)に対応できない可能性があります。
  • ブログ要素(サイドバー、ウィジェットなど)は常に最新の状態を保ちます。
  • 数百から数千の閲覧が頻繁にあるページを持つブログに効果的です。

WP SuperCache と WP DB Cache の主な違いは、後者のキャッシュはブログのすべてのページで再利用されるのに対し、WP SuperCache はページ単位でのみキャッシュを提供する点です。

最高のキャッシュ効果は WP DB Cache に対して: 1,000 ページのブログが一度だけ訪問されますが、すべて同時にアクセスされます。

WP SuperCache のベストなキャッシュ効果: 1,000人の訪問者が同時にブログの同じページを閲覧する。

ブログに最適なシナリオに応じて、2つのキャッシュプラグインから選択できます。

Frequently Asked Questions

What is the main difference between WP SuperCache and WP DB Cache?
WP SuperCache creates static versions of cached pages, while WP DB Cache caches database queries.
What is a drawback of WP SuperCache mentioned in the article?
WP SuperCache can consume a lot of web space, up to 300+ MB for larger blogs.
What issue does WP SuperCache have with WP-Mobile?
It sometimes caches and serves the mobile version of the blog homepage as the static page.
React to this article:
Written by
Abe Olandres

Abe Olandres

Editor-in-chief

Abe is the founder and Editor-in-Chief of YugaTech with over 20 years of experience in the technology industry. He is one of the pioneers of blogging in the country and is considered by many as the Father of Tech Blogging in the Philippines.

View all posts by Abe Olandres →

22 Comments

AR
Arnulfo · 15 years ago

I experienced an increase in wordpress core files and error log files being dumped in several of my wordpress blogs since I install wp-superchache. The plug-in creates static pages of posts that it increases web space usage. Consequently, my account was suspended because of too many files in my shared hosting account, though the tech support of the hosting company adviced me to use wp-supercache to optimize performance of my blogs. I was told to delete an excess of 30,000 files to restore the service. However, I didn’t uninstall wp-supercahce yet and will be checking to confirm if it really caused the errors and also the dumping of core files.

Reply
DA
Dawnson · 16 years ago

Maybe I can use all of them.

Reply
AB
Abe Olandres Editor-in-chief · 17 years ago

@jhay, that should be the upgrade path. I have great respects with the guys at MT.

Reply
CA
calvin · 17 years ago

mukhang db cache pala yung bagay saken.

Reply
JH
jhay · 17 years ago

If all else fails, is it time to get a VPS or a dedicated server hosting?

How about Media Temple’s approach to hosting websites?

Reply
AB
Abe Olandres Editor-in-chief · 17 years ago

If that’s the case, I’d run SuperCache and set the expiration of the cache at 99999999 seconds.

Reply
SE
Selboy · 17 years ago

to make it more clearer, if your blog is visited by 1,000+ visitors viewing 1,000 pages of your blog simultaneously then you need the dbcache plugin.

However, if your 1,000+ visitors are just viewing a single page at the same time, then better get the supercache.

but what about if 1,000 visitors are visiting 1,000 pages and another 1,000 visitors are visiting only a single page but these 2,000 visitors visit the blog at the same time, what plugin should we need? Do we need to install both of them? just wondering… :-)

Reply
BR
BrianB · 17 years ago

Abe, I need a lock down too in the blog. Is it available?

Reply
AB
Abe Olandres Editor-in-chief · 17 years ago

Checked it before. WP SuperCache isn’t compatible with your hosting platform.

NA
nathan · 17 years ago

stable na po ba ang “wp db cache” plugin?

Reply
AB
Abe Olandres Editor-in-chief · 17 years ago

@nathan : So far okay naman sya.

Leave a Reply

Loading next article...