Fixed logger reference issue in putCacheFile.