When cache dir does not exist regenerate all cache files.