前言介紹
- 這款 WordPress 外掛「CDN Buster」是 2015-10-16 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2017-08-01,距離現在已有 2833 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.2 以上版本才可以安裝。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
manojtd |
外掛標籤
cdn | cache | W3 Total Cache | WP Super Cache | cache invalidation |
內容簡介
使用像 Amazon Cloudfront 這樣的內容交付網路(CDN)來加快您的部落格速度時,您會遇到這樣的情況:當您更新靜態檔案(例如樣式或圖像檔案)時,讀者仍然從 CDN 取得舊檔案。您的部落格伺服器上的所有快取清除都無法幫助刷新 CDN 上的快取檔案。唯一的方法是「作廢」該檔案,這將通知 CDN 從原始位置拉取新版。但這需要您登錄到 CDN 伺服器,找到檔案,生成正確的作廢請求,並等待它遍及所有鏡像,而且通常需要付費。
CDN Buster 提供更簡單的替代方案。您在外掛管理頁面中輸入版本字串,然後在您的快取外掛中定義 CDN 位址時加入相同的字串,例如 WP Super Cache 或 W3 Total Cache。這樣,當讀者載入網頁時,他會尋找不同的檔案,您的 CDN 伺服器將查询您的部落格伺服器以取得修改後的檔案,而此插件將攔截查詢並從原始位置提供修改的檔案。因此,修改後的檔案將加載到您的 CDN 上,一切都會很順利。
專業版
除了完全功能的 Lite 版本外,CDN Buster 還有專業版,具有更多功能。
自動更新 WP Super Cache 或 W3 Total Cache 快取外掛中的 CDN 設置。
更改您的 CDN 伺服器上的來源拉取位置為通用字串(例如cdn-bustor-*,其中*可以是任何)而不需要觸及您的部落格設置以作廢快取。
按檔案類型作廢,以便僅作廢某些類型的檔案。
從您指定的清單中作廢單個檔案。
為什麼使用 CDN?
內容交付網路(CDN)是一組地理分佈式伺服器,它們會比您自己的部落格伺服器更快地鏡像和提供您的靜態內容(例如圖像、JavaScript/CSS 檔案、電影等)給您的讀者。它可以極大地加快您的部落格速度:
它可以從靠近讀者的伺服器提供網站載荷的大部分。CDN 伺服器專門為此類內容進行了優化。
由於您在 CDN 上的資源具有不同的位址(URL),因此讀者的瀏覽器可以並行載入靜態內容和動態內容(從您的部落格伺服器)從而提高用戶體驗。
部落格伺服器上的負載減少了,因為它不再提供大部分的頁面內容,這改善了其性能。
總之,如果您還沒有使用 CDN,那您應該使用。如果您使用任何流行的快取外掛(例如 WP Super Cache 或 W3 Total Cache),那它非常容易設置。大多數 CDN 都是所謂的來源拉取類型,即當 CDN 伺服器被要求提供它沒有在快取中的檔案時,它會自動從某處(通常是您的部落格本身)拉取一個檔案。這通常是一次性操作,非常緩慢。然後,CDN 開始在其全球的伺服器上鏡像該檔案。此後,每當有人請求該檔案時,檔案就可以即時從最接近讀者的伺服器中提供。
原文外掛簡介
Once you use a Content Delivery Network (CDN) such as Amazon Cloudfront to speed up your blog, you will come across instances when you update a static file (a style or image file, for instance), but your readers keep getting the stale file from the CDN. No amount of cache clearing on your blog server is going to help refresh the cached file because it is on the CDN. The only way would be to “invalidate” the file, which will signal the CDN to pull a fresh copy from the origin location. But this necessitates you to log on to the CDN server, locate the file, generate a proper invalidation request, and wait for it to percolate to all the mirrors. And it often costs money.
CDN Buster offers a much easier alternative. You enter a Version String in the plugin admin page, and append the same string where you define the CDN address in your caching plugins, such as WP Super Cache or W3 Total Cache. This way, when your reader loads a page, he is looking for a different file, and your CDN server will query your blog server for it, where this plugin will intercept the query and serve the modified file from the original location. Thus, the modified file will get loaded on your CDN and all will be well.
Pro Version
In addition to the fully functional Lite version, CDN Buster also has a Pro version with many more features.
Automatically update the CDN settings in your WP Super Cache or W3 Total Cache plugin.
Change the origin pull location on your CDN server to a generic string (e.g. cdn-bustor-* where * can be anything) without touching your blog settings to invalidate the cache.
Invalidate by file type, so that only certain types of files are invalidated.
Invalidate single files from a list that you specify.
Why use a CDN
Content Delivery Network (CDN) is a collection of geographically distributed servers that mirror and serve you static contents (images, JavaScrip/CSS files, movies etc.) to your readers much faster than your own blog server can. It speeds up your blog tremendously:
It serves a large part of your website payload from servers that are close to the readers. CDN servers are specifically optimized for such contents.
Since your resources on the CDN have different address (URL), the reader’s browser loads the statc content and the dynamic content (from your blog server) in parallel, enhancing the user experience.
The load on your blog server goes down becuase it is no longer serving a large part of the page content, which improves its performance.
In short, if you are not using a CDN yet, you should. It is very easy to set it up if you use any popular cacching plugins (such as WP Super Cache or W3 Total Cache). Most CNDs are of the so-called Origin Pull kind, where the CDN server automatically pulls a file from a location (typically your blog itself) whenever it is asked to serve a file it doesn’t have in its cache. This is usually a one-time operation, which is slow. The CDN then proceeds to mirror the file on its servers all over the world. Thereafter, whenever the file is requested, the file is served instantly from a server closest to the reader.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「CDN Buster」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.00 | 1.01 | 1.02 | 1.10 | 1.20 | 1.30 | 1.31 | 1.40 | 1.50 | trunk |
延伸相關外掛(你可能也想知道)
Purgely 》Purgely是一個使用Fastly作為邊緣快取解決方案的WordPress站點緩存行為管理外掛程式。此外掛程式提供有用的API,可協助控制您網站上的頁面如何緩存,並提供合...。