Title: CDN Tools
Author: reaperhulk
Published: <strong>2009 年 2 月 26 日</strong>
Last modified: 2010 年 6 月 29 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/cdn-tools.svg)

# CDN Tools

 由 [reaperhulk](https://profiles.wordpress.org/reaperhulk/) 開發

[下載](https://downloads.wordpress.org/plugin/cdn-tools.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/cdn-tools/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/cdn-tools/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/cdn-tools/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/cdn-tools/#developers)

 [技術支援](https://wordpress.org/support/plugin/cdn-tools/)

## 外掛說明

[CDN Tools](http://langui.sh/cdn-tools/) is a WordPress plugin that allows you to
load javascript and media files to an external server to drastically speed page 
loads. You can sideload data to a commercial CDN or just load your larger JS libraries(
prototype, jquery) for **free** from Google’s servers. CDN Tools has been designed
to be as easy to use as possible, so give it a shot! Your blog’s readers will thank
you. At this time the only commercial CDN supported is Cloud Files. Check out the
plugin homepage to view a screencast.

**1.0 requires you to reload your files! Do not upgrade until you’re ready to reload.**

Catch new releases and other information about my plugins by following [@reaperhulk](http://twitter.com/reaperhulk)
on Twitter.

[View complete changelog](http://langui.sh/cdn-tools/).

### CDN Loader Dev FAQ

#### How do I create a new CDN class?

Create a directory in cdn_classes named whatever the shortname will be. Then create
a file named loader.php inside with the same basic structure as the cloudfiles loader
and do everything right. Then edit the cdn-tools.php file to add your item. Easy
as pie (if your pie is made of complexity). I promise I’ll write some better instructions
so third parties can contribute CDN plugins at some point. Currently CDN Tools probably
makes some assumptions that are Cloud Files specific.

### License

    ```
    Copyright 2010 Paul Kehrer

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    ```

## 螢幕擷圖

[⌊Settings panel with only Google turned on.⌉⌊Settings panel with only Google turned
on.⌉[

Settings panel with only Google turned on.

[⌊Settings panel with Cloud Files turned on but no data loaded yet.⌉⌊Settings panel
with Cloud Files turned on but no data loaded yet.⌉[

Settings panel with Cloud Files turned on but no data loaded yet.

[⌊Settings panel with Cloud Files on and all files loaded.⌉⌊Settings panel with 
Cloud Files on and all files loaded.⌉[

Settings panel with Cloud Files on and all files loaded.

## 安裝方式

 1. Upload cdn-tools/ into wp-content/plugins/
 2. Activate the plugin via the ‘Plugins’ menu.
 3. Go to the ‘CDN Tools’ option under settings.
 4. Enable the Google AJAX libs if you wish to load jquery and prototype from Google’s
    servers.
 5. If you have a CDN, enable your CDN and enter the login and password.
 6. Once you have saved the prefs a “Load Files” button will appear. Click it!
 7. You’re all set!

## 常見問題集

  Could you add XXXX CDN compatibility?

Unfortunately I’m likely too busy to do this for your CDN, but I’d be happy to answer
questions if you need some assistance in developing your own! If you write a plugin,
please let me know so I can merge it into the main distribution.

  I found a bug. What do I do?

Contact me! This is a complex plugin and the only way I can ensure it’s robust is
to get bug reports and fix the problems that crop up. Please include as much information
as you can when reporting (PHP version, your blog’s site, the error you saw and 
how you got to the page that caused it, et cetera).

## 使用者評論

![](https://secure.gravatar.com/avatar/9c1d3a0a896c7ebf2a5cc0c250737de06bfc91ea9c4a680990a57cf71825d3c6?
s=60&d=retro&r=g)

### 󠀁[no supported](https://wordpress.org/support/topic/no-supported/)󠁿

 [Den999](https://profiles.wordpress.org/den999/) 2017 年 2 月 7 日

no supported

 [ 閱讀全部 1 則使用者評論 ](https://wordpress.org/support/plugin/cdn-tools/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈CDN Tools〉的開發相關工作。

參與者

 *   [ reaperhulk ](https://profiles.wordpress.org/reaperhulk/)

[將〈CDN Tools〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/cdn-tools)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/cdn-tools/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/cdn-tools/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/cdn-tools/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/cdn-tools/)。

## 變更記錄

#### 1.0

 * WP 3.0 compatibility
 * Changed method of storing info about sideloaded files to be far more robust.
 * Use directory structure on Cloud Files (uses just one container now)
 * Now CDNifies post thumbnails as well (WP 2.9+ feature)
 * Fix for blogs using SSL
 * Caches credentials for more rapid initial loads/multiple media attach uploads.
 * You can now define constants in wp-config for plugin configuration. This allows
   to configure settings that will be active on all end-user sites without allowing
   them to see/edit the config. If you define constants the CDN Tools admin page
   will not register a configuration page.

#### 0.99

 * Log retention support (in advanced options)
 * Servicenet flag (in advanced options)
 * Both these features were added courtesy of John Dickinson

#### 0.98

 * WordPress 2.9 support. CDN Tools can now handle the image edit system introduced
   in WP 2.9.
 * Better error handling for a few scenarios.
 * As of this release WP 2.7 is no longer supported. It might work, but future releases
   will almost certainly break it.

#### 0.97 – 12/9/2009

 * Initial sideload AJAX used an absolute path with the siteurl. This should have
   been a relative path or the adminurl to accommodate situations where FORCE_SSL_ADMIN
   is defined. Thanks to John for identifying the bug.

#### 0.96 – 12/4/2009

 * Upgraded and (temporarily) forked CloudFiles API to fix bugs related to safe_mode
   and content type detection. This means you shouldn’t see badcontenttype exceptions
   or “stuck at 0%” errors any more!
 * Improved error reporting for AJAX uploads (including timeout errors, which are
   now set at 90 seconds)
 * Removed loading.gif in favor of WP native spinner

#### 0.95 – 10/25/2009

 * Upgraded to CF API 1.5.1. For users within the Rackspace network who have $_ENV[‘
   RACKSPACE_SERVICENET’] defined, CDN Tools will now use the servicenet instead
   of the public network. This should speed sideloading of large files as well as
   not consuming your bandwidth.

#### 0.94 – 10/19/2009

 * Upgraded to CF API 1.4. This should resolve some cURL issues users have experienced
   and removes the dependence on a png hack for RHEL4 users.
 * Fixed major issue with Google AJAX CDN. Previously users were unable to switch
   between visual and HTML mode on the edit post page.

#### 0.93 – 10/8/2009

 * A partial fix for issues with customers who have full file paths stored in their
   postmeta table. This is not a complete fix, but should help some (most?) users.

#### 0.92 – 10/5/2009

 * Major upgrade to support WP 2.8. If you are a previous user of CDN Tools you 
   MUST unload files and then load them again. Please let me know if you have issues
   because several major changes were made.

#### 0.81 – 5/17/2009

 * Major upgrade to the initial load for attachments. Now done via AJAX with percentage
   progress.
 * Additional exception handling (this is still incomplete)
 * Upgrade to CF API 1.3.0.
 * WordPress MU compatible (credit John Keyes)

#### 0.72 – 2/25/2009

 * First public release, no changes from previous.

#### 0.72 – 2/22/2009

 * Small bugfixes
 * WP Super Cache compatibility.

#### 0.71 – 2/22/2009

 * Workaround for a MIME/PHP bug on RHEL4.

#### 0.7 – 2/17/2009

 * Nearing completion of initial feature set.
 * UI rework (again)

#### 0.6 – 2/15/2009

 * Huge improvements on all fronts

#### 0.4 – 2/8/2009

 * Initial sideload support.

#### 0.2 – 2/7/2009

 * First release outside of my own work (seeded to Major Hayden).
 * GoogleAJAX for Prototype, jQuery, Dojo, and mootools (free for anyone to use)
 * Uploading JS to CloudFiles (only supported CDN presently)
 * Supports opting out of CDN’ing wp-admin scripts.

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **16 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 2.9 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.0.5**
 *  語言
 * [English (US)](https://wordpress.org/plugins/cdn-tools/)
 * 標籤:
 * [cdn](https://tw.wordpress.org/plugins/tags/cdn/)[content](https://tw.wordpress.org/plugins/tags/content/)
   [distribution](https://tw.wordpress.org/plugins/tags/distribution/)[sideload](https://tw.wordpress.org/plugins/tags/sideload/)
   [speed](https://tw.wordpress.org/plugins/tags/speed/)
 *  [進階檢視](https://tw.wordpress.org/plugins/cdn-tools/advanced/)

## 評分

 1 星，滿分為 5 星

 *  [  0 個 5 星使用者評論     ](https://wordpress.org/support/plugin/cdn-tools/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/cdn-tools/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/cdn-tools/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/cdn-tools/reviews/?filter=2)
 *  [  1 個 1 星使用者評論     ](https://wordpress.org/support/plugin/cdn-tools/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/cdn-tools/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/cdn-tools/reviews/)

## 參與者

 *   [ reaperhulk ](https://profiles.wordpress.org/reaperhulk/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/cdn-tools/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://langui.sh/cdn-tools)