Yearly Archives: 2009

Easy PHP Caching: Speed-Up Dynamic Content

Caching dynamic content can save a lot of proceesing power, potentially saving a server from total meltdown under extremely high traffic loads. The popular WP Super Cache plugin has demonstrated this, helping blogs on small shared hosts survive the “Digg Effect” longer.

If a script’s output doesn’t change every time a page is loaded, does it need to be processed each time? Probably not. You can cache a page, or a section of a page, for an appropriate amount of time, and serve it up instead.

It’s a lot simpler to implement caching than you would think. It’s just a matter of using output buffering, a little bit of basic file I/O, and watching the server’s timestamp.

PaperMashup.com has a short article on how to apply a basic cache to your scripts.

It’s not a good idea to go away and cache your entire site, you need to think about which pages receive high traffic, and which pages make a number of database requests. Static HTML pages aren’t going to see a benefit from caching and may in fact be served slower due to PHP invoking the request to the cached version.

AdSense Does Expandable Ads

Google is experimenting with a new ad format that is being run on select publishers’ sites in North America and Europe. The ever-annoying expanding ads. However, it seems that they may have gotten them right, unlike other networks. We’re excited to introduce to you…

The Problem With Selling Blogs…

Blogs generally require a sizable time commitment, much more than websites that are less focused on frequently-added content. It’s not at all uncommon for a blogger to get tired of updating his or her website and auction it off, handing the responsibility to someone…

Design Spotlight: LyricSift

Shifted Frequency has put out another cool little web site. This one is called LyricSift. It’s a quote engine that displays random music lyrics along with the title, album, and artist. Lyric lovers, rejoice! LyricSift is a great way to discover new music, based…

Giveaway: Win 1,000 Business Cards From UPrinting

Readers of Webmaster-Source, listen up! UPrinting, a cheap business card printing company that I’ve found to be of good quality, has offered to give 1,000 business cards each to two people from our community. Two winners will be chosen at random from those who…

BlogBuzz March 7, 2009

Open Links in New Windows or Tabs Without Target=”Blank”

Though it’s not considered good practice to go around opening new windows on people, it still is something that there are practical uses for. There are legitimate reasons to open new windows, other than trying to open all of your external links in new…

What’s Coming in WordPress 2.8

Want to have a sneak peek at what’s coming in version 2.8 of WordPress? You may have noticed that each version of WordPress has it’s own page in the Codex. WP 2.7’s is http://codex.wordpress.org/Version_2.7. If you increment the version number up to the next…

Why Does SimplePie Replace Some Characters With Gibberish?

Sometimes when you use SimplePie to load and output an RSS feed, some characters, like quote marks and apostrphes, are replaced with some gibberish like €‡™. You may wonder what’s wrong, and search to find a way to prevent the unsightly garbage from appearing.…

Chevereto: A Free Image Hosting Script

Chevereto is an open-source image hosting script that could easily be used to create a service like ImageShack or TinyPic (providing you have a good server) or a smaller personal operation. You can see a demo of the script here. It looks pretty nice…