Caching test was broken... sorry; just a mess with mock time.
As a result, improved debug log; if you want to see how it works, just set debugme to true, sit back and watch.