added debug logging messages for cache hits and misses