WordPress To Jekyll And Back Again
brandontreb.com
brandontreb.com
If that's the case then I suggest he tries Hakyll, which has a dependency system built in so that it only rebuilds what it needs when files change.
Hakyll looks pretty slick. I'll check it out for sure. Thanks
I'd be curious to read a post-mortem once you get the site back up.
Caching with WordPress.org is as easy to set up as Jekyll, if not easier. With W3 Total Cache or WP Super Cache, performance is roughly equivalent to a baked site being hosted by the same web server.
Edit: Oops, I lost, as he already said in another thread that he had WP Super Cache turned on. But it seems to me that 512MB would be enough if the web server was set up properly, and in fact caching was set up so the web server would serve pages directly.
There are numerous db hits that take place before this stage (mainly to figure out which plugins need to be loaded).
Also, the PHP must be interpreted in order to render html. The static site generation has _none_ of this as it's already pre-rendered in html.
Note:
* Ubuntu 512MB on Rackspace
* Apache
* Wordpress with wp-super-cache and minimal plugins enabled
Thanks for the feedback!
* Run PHP with php-fpm (bundled in latest PHP 5.3)
* Use a PHP accelerator like APC.
http://blog.rassemblr.com/2011/01/wordpress-need-for-speed-o...
This has been throughly tested with yet another post on HN front page a while later! My blog handled the load without a glitch.
Looks like I'm replying with the same comment over and over again. But I have to share nginx love :-)
You'd think there would be some sort of dependency build tree ala make/rake so only items whose source components would need to be rebuilt (which, in some cases could be the whole site).
And once you approach the level of a more typical WordPress site in both volume and information per page, I'm not sure how much effort you'd save. It's probably better to investigate how to make the general run time a bit faster. (Although it would probably be possible to have mostly static pages with few dependencies, then make the dynamic/dependent changes via a minimal web service and AJAX. At least when the load is too much for that, you'd still see the static content. Wouldn't be as generic/small as jekyll then, though.)
Wordpress cacheing HN traffic should do fine too. There's something else going on here.
HN traffic isn't really that much. I was watching the stats under the new Google Analytics realtime mode and the site was averaging about 3 - 6 requests per second.
More on topic, though: I don't think anyone is seriously claiming that both solutions are equivalent or easily interchangeable. For me the simple and 'process the files once' approach makes a lot of sense and even seems more transparent than a big beast like WordPress. Whether Jekyll or Blosxom - something that feels less like a CMS and more like a way to write simple texts.
I've had Markdown on my WordPress install for many years, but only recently decided to commit to learning the main commands off by heart, and use it whenever possible. Markdown's not perfect, but committing to it has sped up writing a lot.
I developed MarkdownPad (http://markdownpad.com) for Windows, and there's also Mou for Mac and Retext for Linux.
You can see more from his own comments when he posted it on Hacker news[3].
[1] http://tom.preston-werner.com/2008/11/17/blogging-like-a-hac...
[2] http://www.allthingsdistributed.com/2011/08/Jekyll-amazon-s3...
(you can run WordPress locally to generate the site, or use a 3rd party service just to run the process but not serve from it).
The hacker solution that the Chief Technology Officer of Amazon uses is much more a "power to the people" approach.
I gave the WPEngine link just to prove people are doing it with WordPress and it's not a pipedream.
The author obviously don't want to compile the site as it takes too long for him, so compiling a wordpress blog would not yield any time benefits.
In addition, my blog regenerates in < 5 seconds on Ruby 1.9.3.
http://jackbaty.com/2011/10/new-blogging-hotness/
At the moment, Jekyll (via Octopress) is more interesting/educational to me than plugging away at familiar Wordpress, so I'll cross that bridge when I get there.
Are there any Jekyll blogs with hundreds or thousands of posts?
And while Jekyll still has some downsides it is superior when it comes to handling a load spike from a HN post.