Fix typing info on cache call signature to accept `on_invalidate`.