Fix print_cache
Merge pull request #2375 from flacjacket/iteritems_fix

Fix print_cache