Invalidate cache on compilation changes

There are probably more elegant ways to go about it, but I suspect that
most people just end up with a solution like mine.