Another WordPress plugin. I’ve been using this on my own site for a long time and, after people encountered 404s searching for it, have decided to publish it.
Speed Cache basically takes external files such as javascript and CSS and mirrors them on your own server. I’m not going to go into detail about why you’d want to do this - you either do or you don’t. If you do, then feel free to use the plugin.
Support questions in the comments for now, but I’m not providing any guarantees. This post may be replaced by a proper info page about the plugin sometime in the future, but at the moment that’s unlikely.
7 Comments so far
Leave a commentwhat format does: Local Mirror expect? http:…
or /var/www… ? with or without trailing slash
mentioned by ovidiu on November 29, 2007 9:33 pm | Permalink
and does your plugin automatically exchange the original resource with the local mirrored one or do I have to edit all original code and replace with my mirrored content?
voiced by ovidiu on November 29, 2007 9:41 pm | Permalink
Local mirror is a path without a leading “/” from your blog’s root directory. So for http://blogname.com/wp-content/cached.js you’d write wp-content/cached.js.
You’ll have to edit your template / theme to point to your mirrored content.
declared by Ankur on November 29, 2007 10:12 pm | Permalink
For example, if you’re running Google Analytics, you could have something like:
File URL:
http://www.google-analytics.com/urchin.js
Local Mirror:
wp-content/urchin.js
Of course, make sure that the local file is writable.
voiced by Ankur on November 29, 2007 10:16 pm | Permalink
ok, thx.
one last question: you say: “make sure that the local file is writable” does this mean I have to manually create the local file? or is it ok if I make the i.e. wp-cotnent/cache/speedcache folder writeable by the browser? will your plugin create the file for the local mirror by itsself?
proclaimed by ovidiu on November 29, 2007 10:31 pm | Permalink
Using…
File URL:
http://www.google-analytics.com/urchin.js
Local Mirror:
temp/urchin.js (chmod 777)
Getting Error “Couldn’t fetch URL”
Your using fopen to fetch the File URL and my PHPinfo is showing allow_url_fopen “on”
Apache log is showing no errors
Any Suggestions?
Thanks
declared by couchmouse on November 30, 2007 3:28 am | Permalink
Leave a comment