add cache debugging
Merge pull request #879 from vvuk/cache-debug

add cache debugging