Update caching.py

comments added to caching.py