Only regenrate pages that need regeneration