Dump cached results on a change

3.0-unstable version of #2399