logging helped uncover why caching was not working