Use the CACHEDIR variable instead of DATADIR.