imathis/octopress — Issue #449: Regeneration of all posts after adding a new post
Author: kprav33n
Created: 2012-02-24 21:34:51+00:00
State: open

Recently I have migrated by blog from Wordpress to Octopress. I have also migrated the hosting from a VPS to Amazon S3. Everything works great!

However, when I create a new post and run 'rake generate', it regenerates all the pages. I'm not talking about just timestamp change. But the content changes too. I guess that this is due to fact that the recent posts section on every post has to be updated with the new post that was created. This results in transferring all the files over again. This is not a major issue when deploying with SSH/rsync. But for Amazon S3, not only the PUT request is costlier that GET, but also it takes a long time to sync a reasonable sized blog (500+) post after adding a new post.

I was wondering if it would be possible to populate the recent posts information in JSON and use Javascript in each post to show recent posts section. This way, a new post will not end up regenerating all the other posts. This can be given as a configurable option if not a default option.