digpicz digg’s missing picture section

I am completely amazed by the amount of traffic and emails I have received after launching digpicz.com.

Digpicz received an incredible amount of 100'000 visitors during the first 20 hours! I launched it at 3am (my local time) and it got submitted to digg.com by Ilker Yoldas from TheThinkingBlog soon after, and it made to the front page of Digg two hours later.

According to statcounter.com by midnight it had been visited by 100'727 unique visitors. During two days it has been online (September 2 and September 3) 130'848 uniques have made 265'836 page requests.

digpicz, digg’s missing picture section, statcounter traffic stats

Since I was running it on a shared hosting server ($9.95/monthly at Dreamhost), I had foreseen that there might be problems with dynamically generating page on each request (for example, taking data from the database and creating HTML output using PHP or Perl) and all the pages on the website were simple pre-generated HTML documents. Once a new picture was added only the index.html (default page) was regenerated.

Using this technique helped a shared server with 1000 users (wc -l /etc/passwd) survive!

Soon after digpicz.com got posted to Digg, the story was picked up by TechCrunch, Mashable, FranticIndustries (which was first to blog about it :)) and many other sites.

Here is a picture from Google Analytics web statistics displaying top referrals (September 2 data only):

digpicz, digg’s missing picture section, google analytics referral statistics

It was not that nice with this blog. Since I posted how the site was made and made full source code of digpicz.com website generator available, the blog entry got posted to Digg itself as well.

I use Wordpress blog platform for this blog and it is not really designed with handling slashdot like effects (digg effect, for example) in mind. If no optimizations are done, traffic spike usually just bring the server to down to hell. With all the plugins I use on this blog, Wordpress makes like 40 SQL queries for each served page and then runs the whole content through filters and hooks and whatnot.

I did not expect the site to get Dugg that soon and had not made any optimizations to the blog.

The post made it to Digg's front page in 7 hours and the traffic brought the whole shared hosting server to knees. The blog stopped responding and I had to do something because I was losing many, many potential new readers and subscribers.

I tried installing Wp-Cache 2 plugin on my local development server with an idea to upload it via FTP to shared hosting but the plugin didn't want to work. I have no idea why and I didn't have time to debug the problem. I had to find another solution.

I had set up my blog to use permalink link structure and I remembered that the mod_rewrite directives (ps. here is an excellent mod_rewrite cheat sheet) in .htaccess file, which sets up the link structure, avoided rewriting links if an existing file or directory was requested.

There two lines in the .htaccess generated by Wordpress saved my blog:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

The story Digg linked to was /blog/designing-digg-picture-website/. I quickly created this directory on the server. Now the second RewriteCond rule started working and I instantly noticed the load dropping from 350 to a very low value. Then I created a stripped version of original article and placed it as an index.html file in the newly created directory. The stripped version looked like this. That's it, the load had dropped, the pages were being served, I was happy and readers were happy as well. :)

According to Statcounter my blog received 36'389 unique visitors during these two days:

catonmat statcounter traffic during launching digpicz

And the feed subscriber count (at FeedBurner) increased from 104 to 311 (During September 2):

catonmat feedburner subscribers after launching digpicz

I can't wait to see how many blog subscribers I will have once the data for Tuesday is updated! :)

I can tell you a little secret now. You know popurls.com, right? If you don't, then it's a website which aggregates all the best buzz around the net from sources like digg, reddit, del.icio.us, newsvine and many others.

I bought a nicely named domain last week and I am working on a picture aggregation website which finds all the latest posts on all the social websites and displays them on a single page. :)

Expect this website to be out by the end of the week, presumably Sunday. I will probably write a two-part article on how this baby was created, how much time it took me and I will release the full source code as usual.

Until next time! ;)


September 05, 2007, 04:41

That is simply awesome man! Keep up the good work. :)

September 05, 2007, 07:21

I'm one of those who came from TechCrunch and immediately subscribed to your blog. The resources you published in this blog of yours is irresistable.

Keep up the good work, buddy ;)

September 05, 2007, 08:45

please change the full rss blog feed!!!!

September 05, 2007, 12:15

Wallace, what do you exactly mean? I am already exporting full RSS Feed!

September 06, 2007, 02:42

Awesome, that pic aggregator idea is brilliant Digpicz is fantastic. By the way, I submitted Digpicz to StumbleUpon and send the link to a bunch of friends who also voted it up - hope that helped with traffic too!

parab0la Permalink
September 06, 2007, 09:37

You're a fucking genius. If you had tits I'd hug you.

Seriously, keep up the good work.

September 06, 2007, 18:14

So far everything is looking really good. Keep up the good work

September 07, 2007, 05:37

Interesting work on the optimization. Let us know if you invest any more time into optimizing Wordpress for traffic. WP-Cache is a start but even with that enabled I don't think any shared account could survive 100,000 hits.

March 20, 2014, 02:33

I do not even know how I ended up here, but I thought this post was great. blog I do not know who you are but definitely you're going to a famous blogger if you aren't already ;) Cheers

October 26, 2014, 13:30

You may have not intended to do so, but I think you have managed to express the state of mind that a lot of people are in. The sense of wanting to help, but not knowing how or where, is something a lot of us are going through.

October 26, 2014, 13:30

Couldn't be written any better. Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing!

October 26, 2014, 13:30

You got a really useful blog I have been here reading for about an hour. I am a newbie and your success is very much an inspiration for me.

Nanda Permalink
October 30, 2014, 17:54

It is so impressive that using this tool the traffic got increased. I am planning to use this tool, can you tell me how can i get it. Mean time Check here the best SBI Bank details available in Delhi.

Leave a new comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "rocket": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.