MDL-56251 format_weeks: do not use caches in event observers