Wordpress Plugins – Extensions

Just another WordPress.com weblog

OSSDL CDN off-linker 1.0.2

Author: W-Mark Kubacki
Replaces the blog URL by another for all files under wp-content and wp-includes.
That way static content can be handled by a CDN by origin pull. (The origin is your blog address.
Installation:

Setup your CDN: Either configure an origin pull, mirror bucket or upload your static files somewhere.
Upload ossdl-cdn.php to the /wp-content/plugins/ directory.
Activate the plugin through the ‘Plugins’ menu in WordPress.
Provide the URL where your static files can be found under Settings.

faq:
How to uninstall?

Either deactivate the plugin or delete the ossdl-cdn.php file.

Why another such plugin?

As many WP plugins don’t correctly include JS and CSS files most of the current CDN plugins cannot
rewrite links correctly. They rely on the high-level WP API.

This plugin does its rewriting on the lowest level possible – PHP itself.

How does it work?

After your blog pages have been rendered but before sending them to the visitor,
it will rewrite links pointing to wp-content and wp-includes. That rewriting will simply
replace your blog URL with that you have entered in settings screen.

Thus files are pulled from the other site.

Is it compatible to plugin XY?

Yes, by design it is compatible to all plugins. It hooks into a PHP function (ob_start)
and there does the string replacement. Therefore, no WordPress function is altered, overwritten or modified in any way.

Indeed, you could even copy this plugin’s rewriter into any arbitrary PHP software.

Where can I see it in action?

On my own blog, Mark’s blog. See the source code of any page.

Will it work with my CDN?

Yes, if it supports origin pull (aka mirror bucket, some sort of caching). Or if you upload your files manually.

What about Amazon’s S3?

Right, S3 doesn’t support origin pull. You will have to upload your files by hand.
I’ve written a script for this, too, so it is just a matter of running it. It is linked on the bottom of my blog post about copying files to CloudFront.

What other plugins do you recommend?

Now that you can offload all the files such as images, music or CSS, you should serve your blog posts as static files to decrease load on your server.
I recommend SuperCache-Plus
as it will maintain, update and create that static files from dynamic content for you.
The off-linker is compatible.

I discovered a bug!

Share it with me! The rarer a species, the more interesting. But I will need its habitat, too.
Therefore, please send me at least one page with the plugin turned off and on, as attachment.

OSSDL CDN off-linker 1.0.2

Advertisements

June 27, 2010 - Posted by | download, extension, extensions, free, get, internet, plugin, plugins, Uncategorized, wordpress

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: