Fix debug prints in tools/cache.py

Current incoming is broken as a result of this; DEBUG_CACHE isn't defined in cache.py