Fix issue #10614, fix the repo metadata cache duration and stale problem