Adds task to clear cache