WordPressサイトにWP Super Cacheを設定する方法をお探しですか?
Googleのような検索エンジンは現在、サイトスピードを重要なランキング要素とみなしています。WP Super Cacheはサイトを高速化し、SEOを強化し、サイト訪問者のユーザーエクスペリエンスを向上させます。
この投稿では、あなたのサイトにWP Super Cacheをインストールし、設定する方法を紹介します。
WP Super Cacheとは?
WP Super Cacheは、WordPressのキャッシュプラグインの中で最も人気があり、最も優れたプラグインの1つです。無料のプラグインで、200万以上の有効化したインストールがあります。
WP Super Cacheはあなたのサイトの各ページのコピーを静的HTMLファイルの形で作成します。こうすることで、誰かがあなたのサイトを訪れるたびに、ゼロからサイト全体をジェネレータする代わりに、コピーされたバージョンを素早く提供することができます。
その結果、WordPressサイトのスピードとパフォーマンスが劇的に向上します。キャッシュプラグインは、訪問者がページを開くのを待つ必要がないように、舞台裏で多くのステップをスキップします。
読み込みの速いサイトでは、WordPressのSEOや検索エンジンの順位が上昇します。Googleはサイトの表示速度をランキング要因としているため、より高速なサイトに大きなアドバンテージを与えます。
さらに、サイト訪問者の体験も向上します。読み込みが速いサイトは、ユーザーが頻繁にサイトを訪れることを促します。そうすることで、ユーザーのページ滞在時間が長くなり、エンゲージメントとコンバージョンが高まります。
さて、あなたのサイトにWP Super Cacheを設定する準備はできましたか?確認してみましょう。
WP Super Cacheの設定 – 簡単な方法
最初に行う必要があるのは、あなたのサイトにWP Super Cacheプラグインをインストールして有効化することです。詳しくはWordPressプラグインのインストール方法をご覧ください。
有効化した場合、WP Super Cacheは現在あなたのサイトでキャッシュが有効化されていないことを通知します。
キャッシュを有効化するには、設定 ” WP Super Cacheにアクセスしてください。そしてEasyタブの下にある’Caching On’オプションをクリックしてください。そうしたら、「状態を更新」ボタンをクリックしてください。
キャッシュをオンにした後、キャッシュテスターのセクションまでスクロールダウンする必要があります。
そこで’Test Cache’ボタンをクリックし、キャッシュが機能しているかどうかを確認する。
WP Super CacheはWordPressサイトを2回取得し、両方のページのタイムスタンプを比較します。両方のタイムスタンプが一致した場合、キャッシュがあなたのサイトで機能していることを意味します。
WP Super Cache 詳細設定
WP Super Cacheは、多くの高度なオプションが付属している強力なWordPressプラグインです。これらのオプションは、サイトのパフォーマンスをさらに向上させ、プラグインがサイトをキャッシュする方法をよりコントロールすることができます。
キャッシュの有効化
WP Super Cacheを高度なオプションで設定するには、WP Super Cacheプラグインの「Advanced」タブに行く。次に、「キャッシュを有効化」のチェックボックスをクリックします。
キャッシュの下に、「キャッシュ配信方法」のオプション設定があります。初心者の方で、サーバーファイルの編集に慣れていない場合は、「シンプル」オプションを使用することをお勧めします。
WP Super Cacheで圧縮を有効化する
圧縮により、WP Super Cacheはキャッシュされたファイルを圧縮ファイルとして提供し、ロード時間を改善します。これらのファイルはより小さく、ブラウザーによってより速くダウンロードされます。
圧縮を有効化するには、「Miscellaneous(その他)」セクションまでスクロールダウンし、「Compress pages, so they’re served more quickly to visitors(ページを圧縮して、訪問者に素早く提供する)」というボックスにチェックを入れる。
ダイナミック・キャッシュの有効化
キャッシュ中にウェブページの特定の部分をダイナミックに保ちたい場合、WP Super Cacheはそのためのオプションを提供します。
オプションを有効化するには、「Advanced」セクションに移動し、「Enable dynamic caching」のチェックボックスをクリックします。
ダイナミックキャッシュを有効化することは、特に頻繁に変更されるコンテンツを含むページがある場合に有効です。例えば、ダイナミックキャッシュを有効にすることで、広告を含むページを高速化することができます。
有効期限とガベージコレクションの設定
WP Super Cacheでは、サーバーからキャッシュされたページを削除する有効期限と頻度を設定することができます。
まずは、「Advanced」タブの「Expiry Time & Garbage Collection」セクションまでスクロールして設定する。
キャッシュタイムアウト’は、キャッシュされたページを削除し、新しいキャッシュを実行するようプラグインに指示します。プラグインは初期設定で1800秒に設定し、トラフィックの多いサイトには最適です。
しかし、トラフィックがそれほど多くない新規サイトの場合は、3600秒から始めるのがよいだろう。
それ以外にも、プラグインが古くなったキャッシュファイルをチェックして削除する時間をスケジュールすることができます。
キャッシュさせたくないページを指定する
初期設定では、プラグインはサイト上のすべてのページをキャッシュします。これはキャッシュファイルのサイズを大きくし、より多くのリソースを使用する可能性があります。しかし、WP Super Cacheはキャッシュさせたくないページを追加することができます。
詳細設定]タブの[拒否されたURL文字列]セクションまでスクロールしてください。テキストボックスに、プラグインにキャッシュさせたくないページのURL文字列を入力してください。
例えば、eコマースストアの場合、訪問者があまりアクセスしないページを除外してサーバーリソースを節約することができます。例えば、購入手続きページ、アカウントページ、サンキューページなどです。
終了したら、「文字列を保存」ボタンをクリックするのをお忘れなく。
WP Super CacheでCDNを設定する
ほとんどのコンテンツサイトでは、ページリクエストごとに多くの静的ファイルを提供しています。
これには、JavaScriptファイル、画像、スタイルシートなどが含まれます。PHPによって動的に生成されるWordPress投稿とは異なり、これらのファイルはコンテンツデリバリーネットワーク(CDN)サービスを使用して提供することができます。
CDNは、地理的に分散されたサーバーのサイトネットワークで、訪問者にコンテンツを迅速に配信するのに役立ちます。詳しくは、CDNが必要な理由についてのインフォグラフィックをご覧ください。
注: WP Super CacheでCDNをセットアップするのは少し技術的で、CDNの経験が必須です。もっと簡単な方法をお望みなら、CloudFlareは簡単に設定できる無料のCDNプロバイダーです。WordPressサイトにCloudFlareの無料CDNをセットアップする方法のチュートリアルをご覧ください。
WP Super CacheでCDNを設定するには、CDNタブをクリックし、「CDNサポートを有効化」オプションの隣にあるチェックボックスをオンにします。
プルゾーンのURLとなるオフサイトのURLを入力します。プルゾーンは、CDNにあなたのファイルをどこで見つけ、どのようにユーザーに提供するかを指示します。例えば、次のように入力できます: https://cdn.wpbeginner.com
Additional CNAMEsフィールドに、プルゾーン用に作成した他のCNAMEを入力してください。例えば、http://cdn1.wpbeginner.com、http
://cdn2.wpbeginner.com、http://cdn3.wpbeginner.com。
その他の設定は初期設定のままで構いません。最後に、’Skip https URLs to avoid “mixed content “errors’というボックスにチェックを入れ、変更を保存する。
これであなたのサイトはCDNから静的コンテンツを提供する準備が整いました。
WP Super Cacheで静的サイトを提供する
WP Super Cacheのプリロードモードでは、すべての投稿とページにスーパーキャッシュ静的ファイルを作成し、静的なサイトを提供することができます。こうすることで、誰かがあなたのサイトにアクセスするたびに、コンテンツが素早く読み込まれます。
スーパーキャッシュ静的ファイルは、サーバーリソースを節約し、更新されなくなった古いサイトを提供し、静的コンテンツのみを提供することでサイトの速度を向上させるのに役立ちます。
まず、WP Super Cacheプラグインの「Preload」タブにアクセスしてください。次に、プリロード・キャッシュ・ファイルを更新する時間を設定します。
初期設定では、プラグインは600分に設定しますが、毎日複数の記事を公開する場合は、時間を短縮することができます。
WordPressサイト全体のプリロードには時間がかかり、サーバーのリソースを大量に消費することを覚えておいてください。手動でキャッシュを更新しない限り、静的ファイルの有効期限が切れるのを避けたい場合は、0にしておくことができます。
その後、「Preload mode (garbage collection disabled. Recommended)」にチェックが入っていることを確認してください。サイト上のタグ、カテゴリー、その他のタクソノミーごとにプリロードを有効化することもできます。
プラグインには、ファイルが更新されるたびにメールアラートを受け取るオプションもあります。初期設定では、「メールなし」設定が使用されますが、ドロップダウンメニューからオプションを選択して変更することができます。
設定が完了したら、設定を保存して「Preload Cache Now」ボタンをクリックします。
WordPressキャッシュのエキスパートガイド
WP Super Cacheの設定方法がわかったところで、WordPressのキャッシュに関連する他の投稿もご覧ください。
- 用語集キャッシュ
- WordPressのレバレッジ・ブラウザ・キャッシュ警告を簡単に修正する方法
- WordPressのキャッシュをクリアする方法(ステップバイステップ)
- サイトを高速化するWordPressのベストキャッシュプラグイン
- LiteSpeed Cache vs. WP Rocket – どっちがいいの?
- WordPressにWP Rocketを正しくインストール・設定する方法
- 初心者のためのW3 Total Cacheインストールと設定方法
- WordPressのスピードとパフォーマンスを向上させる究極のガイド
- WooCommerceのパフォーマンスを高速化する方法
このガイドがWordPressブログにWP Super Cacheを設定するのにお役に立てば幸いです。また、WordPress サイトを HTTP から HTTPS に移行する方法、またはサイトを高速化するために最適なホスティングサービスプロバイダーをご紹介します。
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Syed Balkhi says
Hey WPBeginner readers,
Did you know you can win exciting prizes by commenting on WPBeginner?
Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
You can get more details about the contest from here.
Start sharing your thoughts below to stand a chance to win!
Anze says
Hey; I have a question – so preload mode enabled does not deletes old cached files – but does that means then when preloaded files are refreshed, the old ones are deleted and replaced, or does it just adding files, which would mean space on server would eventually run out?
WPBeginner Support says
When the page is preloaded a new time, the old preloaded version would be deleted and replaced.
管理者
James Omeke says
Thanks so much . This was very helpful.
I got my website up and running now
WPBeginner Support says
You’re welcome, glad our guide was helpful!
管理者
Mike Royden says
Plug in installed, but can’t get past this;
Permalink Structure Error
A custom url or permalink structure is required for this plugin to work correctly. Please go to the Permalinks Options Page to configure your permalinks.
I have gone to the Permalinks Options Page to configure your permalinks, but can’t see where I’m going wrong. Going round in circles, please help. Thanks
WPBeginner Support says
You would want to ensure your permalinks are not set to plain for that error. We recommend using the Post name structure.
管理者
Mike Royden says
Sorted! Many thanks for your advice and taking the time to reply. Cheers.
Katherine says
I’m trying to set up this plug in to get the best results, and I’m not tech-savvy at all. Your Wp advanced cache set up section is not the same as the current plugin advanced options.
WPBeginner Support says
Thank you for letting us know, we will be sure to take a look into this and update our article when able.
管理者
Simon says
I was able to speed up my homepage significantly but unfortunately it only worked for the homepage. The subpages like i.e. ‘Services’ are still really slow.
What could be the problem?
WPBeginner Support says
You would want to run a speed test for that using our guide below to figure that out:
https://www.wpbeginner.com/beginners-guide/how-to-properly-run-a-website-speed-test-best-tools/
管理者
Rainey says
Unable to activate the plugin. I get a warning message that a .php file already exists and I should manually delete it before using the plugin. Since I am not a techie I do not know where to go to delete the file. If you could put language in your update to the tutorial to guide us would be really helpful.
WPBeginner Support says
For that error, you may want to follow our guide below:
https://www.wpbeginner.com/wp-tutorials/how-to-fix-destination-folder-already-exists-error-in-wordpress/
管理者
Paul says
This post is dated. When will this post be updated? Would like to know the current status of WP Super Cache?
WPBeginner Support says
Thank you for letting us know, we do not have a specific date that content will be updated but we will take a look into updating this article
管理者
Nic says
Is there a way to export settings once you get done?
WPBeginner Support says
At the moment WP Super Cache does not have a built-in option to export settings.
管理者
ShoaiB says
Thank you for this Awesome Guide.
I’m using WP Super Cache (Version 1.7.0 ). In the above tutorial, many features are not included. plz, Update Post.
WPBeginner Support says
Thank you for your request, we will look into updating the post
管理者
Christopher says
not as easy as described…
A custom url or permalink structure is required for this plugin to work correctly. Please go to the Permalinks Options Page to configure your permalinks.
WPBeginner Support says
Thank you for reminding us of that, we’ll be sure to look into updating the article for clarification.
管理者
Ana says
Hello Support!
Thank you for all your work, I’m a complete newbie and without you, I don’t know how I’d manage.
I’m confused as regards what off-site URLs and CNames are, so I’m unable to fill in that in the form. Do I have to refer to somewhere on my page to find out or do I just create it my indicating something?
Just in case it affects somehow I’d like to inform that I run a multisite.
Thank you so much & hope you can help me,
Ana
WPBeginner Support says
Hi Ana,
The off site URL is the URL of your CDN location and CNames are different pullzones you have created on your CDN server. If you are not using a CDN, then you don’t need to make any changes to these settings.
管理者
krishna says
can i use this plugin for testing in localhost ??
i installed this plugin in localhost and in “Cache Contents” nothing cached
displaying this …
WP-Cache (0KB)
0 Cached Pages
0 Expired Pages
WP-Super-Cache (0KB)
0 Cached Pages
0 Expired Pages
is it because i can’t use cache plugin in localhost or some other issue ?
Hardik says
There is nothing called MOD_REWRITE. Everything from that step seems completely different. Please update the tutorial.
Mike says
No matter what settings I use Pingdom still gives me an F and says “The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:” and I see and “expiration not specified” message in the details. Am I missing a setting?
Akshay says
Hi Team ,
Thanks for the amazing article .
I have installed WP Super Cache with cloudflare (newbie blogger).
Can you please help me, how can I integrate cloudflare with WP super cache .
I did not found any articles or vidoes for the same .
I thought of installing WP Total , but it has not releasedthe update for recent wordpress version 4.8.1
Thank You
Sumaiya says
Hi, I wanted to speed up my site. I used this guide and customized the settings as you shown. But before installing this plugin I tested my site speed it was 4.20 sec. But after installing I check it was 6.78 sec. Why is it like this? please guide me well.
WPBeginner Support says
Hi Sumaiya,
Please test it again. If the result persists, then deactivate the plugin.
管理者
Rajeev jaiswal says
hello sir, I’m trying to integrate js and CSS code elements in twenty-seventeen WordPress theme. I use enqueue methods but it does not work, so suggest me to all about.
Sara says
I just downloaded WP Super Cache and the “Advanced” Page doesn’t have the same setup (or some of the same options!) as your screenshot and instructions. Are those dates, or did I somehow end up with an older version of the plugin?
Carrie says
Same here, my settings are different.
Abner says
Hi guys – Thanks for sharing this. I am using wp super cache and my wordpress is 4.0.1. At first, i don’t have any problem. Until recently, having a problem. My post did not appear on my website. I tried to put the caching off and my post appear. After that, I put the caching on again. My workaround was after posting article to my website, I will put my caching off to appear the post in my website, then after a few minutes, I will put the caching to on.
Few weeks doing that, and now, when I put the caching on, my post will disappear again to my website. As of now, my caching is still off.
Thanks and hope you can help me.
WPBeginner Support says
Hi Abner,
Seems like WP Super Cache is not clearing the cache when you publish new content. Please see our article on how to clear cache in WordPress.
管理者
Mark Layton says
Hello Support,
Thank You for your help with this issue while trying to install WP Super Cache.
Here is a copy of issue :
Warning! Could not update /var/www/website/wp-config.php! WPCACHEHOME must be set in config file.
Warning! /var/www/website/wp-content/advanced-cache.php does not exist or cannot be updated.
1. If it already exists, please delete the file first.
2. Make /var/www/website/wp-content writable using the chmod command through your ftp or server software. (chmod 777 /var/www/website/wp-content) and refresh this page. This is only a temporary measure and you’ll have to make it read only afterwards again. (Change 777 to 755 in the previous command)
3. Refresh this page to update /var/www/website/wp-content/advanced-cache.php
If that doesn’t work, make sure the file /var/www/website/wp-content/advanced-cache.php doesn’t exist:
1. Open /var/www/website/wp-content/plugins/wp-super-cache/advanced-cache.php$wp_cache_file in a text editor.
2. Change the text CACHEHOME to /var/www/website/wp-content/plugins/wp-super-cache/
3. Save the file and copy it to /var/www/website/wp-content/advanced-cache.php and refresh this page.
Cannot continue… fix previous problems and retry.
Already use your Envira Gallery and WP Forms and those are fantastic.
Should I just use W3 Total Cache instead?
Thank You so much for your help.
Mark Layton
WPBeginner Support says
Hey Mark,
You can try following the instructions shown in WP Super Cache. If you find them too complicated, then you can try W3 Total Cache. Good luck
管理者
sheikave Jhurreea says
Initially my website was loading for under 8 seconds which is pretty bad. But using your tutorial I was able get 90/100 for desktop performance.
But the mobile platform it remained 74/100. Could you suggest some resources where I could look up too or what is your suggestion.
WPBeginner Support says
Hey Sheikave,
Congrats! That’s impressive. You may also want to see our guide on how to fix render-blocking JavaScript and CSS in WordPress.
管理者
Greg says
Hi, I’d like to know whether your guidance to choose mod_rewrite to serve cache files still stands as opposed to using PHP or Legacy Caching. I notice since you published your article, WP Super Cache have changed their own recommendation from mod_rewrite to PHP.
Thanks in advance!
Greg
Dillon says
Hi there. I’ve followed this tutorial to a T, and for the most part, everything works correctly, but I’m having two problems. First, when I make changes, they don’t appear on the site if I’m logged in. If I log out, they appear just fine. Second, I’m working on a WPMU network, and I only have the plugin installed on one site. But it’s caching the other sites on the network as well. How do I stop it from doing that? Thanks!
Belayet Hossain says
This is an awesome guideline for new users.
It helped me a lot.
Thanks from the core of heart.
Sarah says
Hi,
I followed your steps because my site was taking over 5s to load but after setting up the WP Super Cache my site wouldn’t load. At all. It was basic HTML – no content, no pictures, just the header…
So, I guess I’m wondering if there’s a laymen’s guide to literally all the terms you use cause I don’t understand websites or programming and I have a website for a start-up NGO so can’t really pay for any help at this point.
Or maybe you could direct me somewhere that will help me understand all this better? I’m a complete novice and confused easily!
Help!
Pedro Moreira says
Hello,
I have a “conceptual doubt” about WP Super Cache, that I didn´t see answered neither in your site neither in other sites.
The question is: the structure of my site is finished. In basic terms, it is mainly a site of videos of football, which means that from this day on I will gradually add posts (that include the videos that I refered) and pages (of the teams).
Since that this will be a long and permanent process, I need right now to speed up my site because nowadays is very slow.
My doubt is: when I install and configue this plugin, what does that mean in terms of the updates that I will do in my site (post and pages that I add)?
I mean, if I cache the site today and tomorrow I add a new page or post, what do I have to do in order that these pages or posts will be also cached? – do I just have to require an update of the plugin? If so, how do I do that, is it possible to define that the plugin will update the cache for example once a week?
Thank you!
Best regards.
Bogdan says
If i don„t use set up the CDN ,the wp super cache will be work properly ?
WPBeginner Support says
Yes, it will work even without CDN.
管理者
Herman says
I’m getting an error on the first step where you need to click on caching on and update. You mentioned the following in your article:
“WP Super Cache will fetch your WordPress site twice and will compare the time stamps of both pages. If the both time stamps match then this means that caching is working on your site now.”
This is the place where I get the error. I get a message that says:
Fetching to prime cache: OK
Fetching first copy of FAILED
Fetching second copy of : FAILED
I would be glad if you could help me out.
Sofor says
Thank you so much, It works great for me.
Teddy says
My site is a coupon site, so code is included on the coupon so it prints out by itself without lots of other junk that is on the page. If I use WP Super Cache, will that code be lost because it’s now a static page? Will people still be able to click on the coupon to print just the coupon?
WPBeginner Support says
Hi Teddy,
You will have to test it out first on your computer or in a staging environment.
管理者
Alex says
Thanks so much for the the help. Do i have to create a cname record to use the CDN service in WP super cache. Thanks
Stefan Andonov says
Hi,
How to preload for several languages, I am using qtranslate, that seems impossible, right?
10x
Stefan
John Johnson says
This is an ecommerce site using Exchange from iThemes. With WP Super Cache activated certain pages that need to be refreshed don’t get refreshed i.e. Empty Cart. When you Empty Cart it comes back with the same content or in other words it appears unemptied.
When I deactivate WP Super Cache the problem disappears. It was suggested that I Whitelist the pages that shouldn’t be cached. I am uncertain about how to do that. Any help would be appreciated.
Regards,
John
Dajuan says
WP Beginner Staff, when a theme update is applied, or when other plugin updates are made, is WP Super Cache alerted to create new cached versions? Or does the plugin wait until “Expiry Time & Garbage Collection” or a manual cache deletion?
Iosif says
Hello,
I am using WP Super Cache, but it seems that my images don’t get cached. Any ideas on how to configure this?
I did have a lazy load plug-in, but it conflicted with my theme, so I deactivated it…
shubhendu says
I have just install wp super cache plugin by reading your article but nor js,css and image is not loading at my blog…plz help my site address is
If you dont want to publish is comment because i include my site link PLEASE reply to my email id.
Thanks.
WPBeginner Support says
Seems like you have already resolved the issue.
管理者
madhavi jha says
hi , i am regular reader of your site , i have setup WP Super Cache plugin as you guide in your blog , but its not working its show only 20/100
please guide me ,i have been tried to solve this problem since last 2 days , please guide me .
nitai roy says
Hi,
I followed as you mentioned here. Everything has done perfectly but I could not find this option: “Enable Compression in WP Super Cache:”
Where is it please?
Also, Now how can I know whether it is working perfectly or not?
Thank you very much.
Patel Shoeb says
How to Install and Setup WP Super Cache with CloudFlare CDN?
kurakaniz says
after updating the plugin it says “.htaccess file may need to be moved” and this error too
A difference between the rules in your .htaccess file and the plugin rewrite rules has been found. This could be simple whitespace differences but you should compare the rules in the file with those below as soon as possible. Click the ’Update Mod_Rewrite Rules’ button to update the rules.
what to do please help
Ron says
Same problem here.Anyone help
stephen says
I installed everything just as you said but I am still getting 52sec load time and if I tried using gtmetrix I get an error saying the URL does not appear to be an HTML.home page . please help site is
Megan Good says
This article was very helpful, and I was able to troubleshoot my issues based on your suggested settings. Thank you for the info!
Omprakash Jaiswal says
wp super cache does not work
Permlink Structure Error
A custom url or permalink structure is required for this plugin to work correctly. Please go to the Permalinks Options Page to configure your permalinks.
Hammad says
Thank you for your suggestions, I’m trying to apply these settings on my website now. Can you please advise if wp super cache supports minify settings.
I had wp3 total cache and had a score of 97/81 on gtmetrix, after installing wp super cache my score decreased to 82/68.
Imran says
Was looking for some great guide for super cache plugin. Now I will try it on my test site.
Thanks for such a nice tutorial
Robert Connor says
Some great tips-now i need to go back and fix my site
User says
How do I get it to work for Mobile without changing the theme?
cezars says
Any info for Rejected User Agents list from the plugin ?
herb says
Installed it and got a lower grade E/D on Gtmetrix…switched to W3TC and it gave me and A/B grade.
efiga says
Hi
i have a little question , when using this plugin to cashe pages , the google adsense ads will be cashed too ? ,it will show the same ads ?
thank you in advance
WPBeginner Staff says
No your Google Ads will not be cached.