Title: CDN Tools
Author: reaperhulk
Published: <strong>26. februar 2009</strong>
Last modified: 29. juni 2010

---

Søk gjennom innstikk

Dette innstikket **er ikkje testa med dei tre siste utgåvene av WordPress**. Det
kan henda det ikkje blir vedlikehalde lenger, og kan ha problem med nyare versjonar
av WordPress.

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

# CDN Tools

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

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

 * [Detaljar](https://nn.wordpress.org/plugins/cdn-tools/#description)
 * [Omtalar](https://nn.wordpress.org/plugins/cdn-tools/#reviews)
 *  [Installasjon](https://nn.wordpress.org/plugins/cdn-tools/#installation)
 * [Utvikling](https://nn.wordpress.org/plugins/cdn-tools/#developers)

 [Hjelp](https://wordpress.org/support/plugin/cdn-tools/)

## Skildring

[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
    ```

## Skjermbilete

 * [[
 * Settings panel with only Google turned on.
 * [[
 * Settings panel with Cloud Files turned on but no data loaded yet.
 * [[
 * Settings panel with Cloud Files on and all files loaded.

## Installasjon

 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!

## Vanlege spm.

  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).

## Omtalar

![](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/) 7. februar 2017

no supported

 [ Les 1 omtale ](https://wordpress.org/support/plugin/cdn-tools/reviews/)

## Bidragsytarar og utviklarar

“CDN Tools” is open source software. The following people have contributed to this
plugin.

Contributors

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

[Omset “CDN Tools” til ditt eige språk.](https://translate.wordpress.org/projects/wp-plugins/cdn-tools)

### Interested in development?

[Les kjeldekoden](https://plugins.trac.wordpress.org/browser/cdn-tools/), sjekk 
[SVN-lageret](https://plugins.svn.wordpress.org/cdn-tools/) eller abonner på [utviklingsloggen](https://plugins.trac.wordpress.org/log/cdn-tools/)
med [RSS](https://plugins.trac.wordpress.org/log/cdn-tools/?limit=100&mode=stop_on_copy&format=rss).

## Endringslogg

#### 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.

## Om

 *  Version **1.0**
 *  Last updated **16 år sidan**
 *  Active installations **10+**
 *  WordPress version ** 2.9 eller nyare **
 *  Tested up to **3.0.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/cdn-tools/)
 * Tags
 * [cdn](https://nn.wordpress.org/plugins/tags/cdn/)[content](https://nn.wordpress.org/plugins/tags/content/)
   [distribution](https://nn.wordpress.org/plugins/tags/distribution/)[sideload](https://nn.wordpress.org/plugins/tags/sideload/)
   [speed](https://nn.wordpress.org/plugins/tags/speed/)
 *  [Avansert vising](https://nn.wordpress.org/plugins/cdn-tools/advanced/)

## Vurderingar

 1 out of 5 stars.

 *  [  0 5-star reviews     ](https://wordpress.org/support/plugin/cdn-tools/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/cdn-tools/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/cdn-tools/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/cdn-tools/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/cdn-tools/reviews/?filter=1)

[Legg til vurderinga mi](https://wordpress.org/support/plugin/cdn-tools/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cdn-tools/reviews/)

## Contributors

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

## Hjelp

Har du noko å seia? Treng du hjelp?

 [Sjå hjelpeforumet](https://wordpress.org/support/plugin/cdn-tools/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://langui.sh/cdn-tools)