Auto refresh if cache is empty

This allows the test cases to proceed. Doesn't break anything that I can see.