Add flush caches task.