Archive

Archive for the ‘Wordpress Plugins’ Category

JSON feed for Wordpress

November 2nd, 2009

Pretty simple, really. Adds a new type of feed you can subscribe to. Simply add ?feed=json to anywhere you get a normal feed to get it in JSON form (but with a cutdown version of events).

Version 1.1 added support for JSONP. To get a JSONP response instead of a normal JSON structure, simply add jsonp=callbackName to your query, where callbackName is the name of the function to be wrapped with.

Author: Chris Northwood
Download: Wordpress Plugin Repository

Wordpress Plugins , , ,

Wordpress object caching in file system

May 12th, 2009

During the past couple of months, since we are maintaining a heavily loaded wordpress implementation, Kerala News Portal for Asianet, distributed across two servers, and having a daily visit of 50K, I was on the hunt for better caching and optimizing techniques. On the move, I happened to read the article by Jeff Starr, written some 15 months ago, and all the associated comments. It was sad to see that the file based cache was removed from wordpress, due to several reasons though.
After reading through this, I saw the official Function Reference for WP Cache, and the eAccelerator for WordPress by NeoSmart Technologies. Reading through the code written by Computer Guru of NeoSmart Technologies, tickled me and I just modified some parts, by pulling out the eaccelerator specific functions, and switching to a file system based store. I am not adding the code as pretty php code. Drop the file into wp-content, create a cache folder in wp-content and chmod folder to 755.
File based object caching for Wordpress (244)

Wordpress Plugins , ,

JavaScript Aggregate; Wordpress plugin

April 30th, 2009

After reading about Website Performance Tweaks, and a lot of other blogs and slides, I thought about how to cook up a javascript aggregate plugin for wordpress. The out come is wp-jsmin. Though this is in its infancy, it is being used in this blog, to combine all linked javascript to a single link, thereby reducing server requests. This code is still in the testing stage, and may break if the used scripts do not pass lint checks. I am planning to shift all the options to a options page in the wordpress admin page.

Those who are daring enough could download and try. Please put a comment here if you are using this on your wordpress. And for others who would like professional help, I would be most pleased to extend my services through RentACoder. Or for a whole dedicated wordpress team to design, build and maintain sites like Kerala News, Asianet Cable Vision: Corporate Site or Campagin Portal for Shashi Tharoor, send an inquiry to Saturn.

WP-JsMin (107)

Code Snippets, Wordpress Plugins ,

Distributed Media; a Wordpress Challege

April 27th, 2009

Though when the team at Saturn decided to build kerala online, on wordpress, they were quite confident, the complications started to get under their skins when the first wave hit the portal and at a point were the portal was being run from a single server and reached about 35K visits per day. The server was running on apache with about 2G Memory and hosted in Asianet the ISP division. There was times when the server was running at load averages above 60. All workarounds were getting futile, and there was certain times, like evening and early morning when the server hits the upper limit and ceases to respond. Read more…

Wordpress Plugins

Get Post Image for Wordpress

September 18th, 2008

Get Post Image is a plugin for Wordpress 2.0 and higher that allows you to retrieve images contained in posts and display them in a custom manner.

Though the plugin helps you do all that what is said, it had a small bug (or was it intentional), will need to ask Andrew. The problem was identified only after we implemented it in the Asianet Portal – Kerala Online. With about 10K hits a day, the whole process was loading our web server which was a Dual Xeon with 4G RAM. I found it really baffling, and went on a wild hunt, and identified a lot of about 15 to 20 internal requests per external request of a page.

The hunt finally came to the place where the problem was on line no 252,
$imagesize = @getimagesize($img_url);,
which was changed to
$imagesize = @getimagesize($img_path);.

And the server started to breathe again.

Wordpress Plugins