Adding log messages if the cache entries are inconsistent

@jduff @boourns @hornairs 

Loggin the case of an id mismatch, not sure if this should ever make it to master, or just git ref a branch in for debugging.