Found The Culprit!

After re-enabling my site, I immediately saw our site getting hammered and our CPU usage spike up. A quick look at our access logs revealed that 90% of the load is being generated by XBMC clients. All their queries appear to be search related, so for the time being, I’ve disabled the internal WordPress search engine and switched to using our Google custom search engine.

Can someone who works on the HD-Trailers.net plug-in for XBMC or if you know someone who does, please get in touch with us? Our email can be found on our contact page.

I’ve gone ahead and reverted all the things I disabled.

I also found out the Lightword Theme doesn’t actually have a 404 page, and it was returning a 200 even when no page was found. Apparently all you have to do is create a 404.php in the theme folder and WordPress would use that. So I quickly whipped one out using their single.php as a template:

<?php header("HTTP/1.0 404 Not Found"); ?>
<?php get_header(); ?>
<div id="content-body">
<?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?>

<h2><?php _e('Not Found','lightword'); ?></h2>
<p><?php _e("Sorry, but you are looking for something that isn't here.","lightword"); ?></p>

</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Blog Maintenance

As some of you may have noticed, our blog was under maintenance for a little over a day. Turns out it was using too much CPU and we were notified that our site would be disabled and told us to come up with a plan on lowering our CPU usage.

Our blog will be running with a bunch of features disabled while we investigate how to lower our CPU usage. We have some ideas on how to do this, but the gist of it is WordPress turns out to be a major CPU hog and DreamHost has told us we needed lower our CPU usage. Turns out our blog was using ~15000 CP minutes per day. For comparison, our main catalog library is only using ~300 CP minutes a day.

Our main catalog services 3x the # of visitors a day more than our blog, yet use only 2% of the CPU that our WordPress blog is using.

We already had Hyper Cache and we only had a small set of plug-ins enabled . I have been searching and going through tons of suggestions on how to lower the CPU usage. A couple things we did:

  • Confirmed that our MYSQL DB had the correct caching enabled
  • Verfied settings in Hyper Cache
  • Installed WP-Optimize and optimized the DBs
  • Disabled new comments from being posted (Akismet was catching 5000+ spams a month)
  • Disabled WordPress.com Stats plug-in
  • Disabled Twitter Tools plug-in
  • Disabled Cuf√≥n
  • Enabled mod_pagespeed
  • Removed recent comments from our side bar
  • Trying out different lightweight themes (our old theme was making 30-40 queries per page)

If you noticed any issues, please do let us know.

Pascal Wallpaper

I posted on Facebook/Twitter a few weeks ago of an awesome picture of Pascal from Tangled:

Pascal

"TANGLED" Pascal Disney Enterprises, Inc. All Rights Reserved.

When I tried using it as my wallpaper, I found the white background to be too bright and it hurt my eyes. Found some time during this break and I made the background gray and thought I shared with you all.

Pascal

"TANGLED" Pascal Disney Enterprises, Inc. All Rights Reserved.

Here it is available in some of the more common screen resolutions:

Side note: I was wondering why the file name had raiponce in it and thought maybe it was Pascal’s first name? Turns out Raiponce is Rapunzel in French.

The Other Woman (Theatrical Trailer)

The Other Woman (2011) Poster Emilia is a Harvard law school graduate and a newlywed, having just married Jack, a high-powered New York lawyer, who was her boss — and married — when she began working at his law firm. Unfortunately, her life takes an unexpected turn when Jack and Emilia lose their newborn daughter. Emilia struggles through her grief to connect with her new stepson William, but is finding it hard to connect with this precocious child. Perhaps the most difficult obstacle of all for Emilia is trying to cope with the constant interferences of her husband’s angry, jealous ex-wife, Carolyn. (Source)

Download: 480p, 720p, 1080p
MP4 Encode
: 1080p

Find more trailers and clips on our homepage.

Tron Legacy (DJ Breakdown)

Tron Legacy Poster TRON is a 3D high-tech adventure set in a digital world that’s unlike anything ever captured on the big screen. Sam Flynn (GARRETT HEDLUND), the tech-savvy 27-year-old son of Kevin Flynn (JEFF BRIDGES), looks into his father’s disappearance and finds himself pulled into the same world of fierce programs and gladiatorial games where his father has been living for 25 years. Along with Kevin’s loyal confidant (OLIVIA WILDE), father and son embark on a life-and-death journey across a visually-stunning cyber universe that has become far more advanced and exceedingly dangerous. (Source)

Download: 480p, 720p, 1080p

Find more trailers and clips on our homepage.

Blue Valentine (What Are You Thinking About?)

Blue Valentine (2010) Poster The story of love found and love lost told in past and present moments in time. Flooded with romantic memories of their courtship, Dean and Cindy use one night to try and save their failing marriage. (Source)

Download: 480p, 720p, 1080p

Find more trailers and clips on our homepage.

Autoplay Feature + Play Latest

We’ve implemented the autoplay feature, something I’ve been planning to do for sometime. If you append #autoplay to any movie page (e.g. http://www.hd-trailers.net/movie/tangled/#autoplay), it’ll play the latest trailer. In actuality, all trailers and resolutions have their own #hash tag, which you can append and that trailer will automatically start playing when the page is loaded. However, that isn’t currently exposed to users yet. I trying to think of a way to redesign the movie page that’ll allow you to easily share links with the appropriate trailer playing.

You may have also noticed that on all of our index pages (e.g. Latest, Library, etc.) where there are posters, there is now a Play Latest button you can click on the bottom of the poster. All this does is trigger the autoplay feature of the movie page, so playing the latest trailer is only 1 click now instead clicking on the poster, scrolling to the trailers, and clicking on the resolution you want. If you happen to land on the movie page and just want to play the latest trailer, we’ve also added a Play Latest button right above the poster for your convenience.

Currently the autoplay feature defaults to 480p. We’re thinking of a way on how to let users choose their own preferred default resolution.

I’ve only tested this on Firefox 3.6, IE8, and Chrome 8, and they appear to work fine. If you hit into issues with a particular browser, please let us know.

More exciting stuff to come! Look forward to it! And don’t forget to sign up four our newsletter!