fix cache not saved when gh's api limit exceeded