You can just issue a post.rebake! for every post that needs a rebake. No need to mess with baked_version.
post.rebake!
baked_version