Fixed cache regeneration