Old disk cache code.