public function run($data, $id = null) {
		$this->hr();
		$this->out(__d('cake_settings_app', 'CakePHP Queue clearing cache task.'));
		$queueLength = $this->QueueInfo->getLengthQueue('ClearCache');
		if ($queueLength > 0) {
			$this->out(__d('cake_settings_app', 'Found clearing cache task in queue: %d. Skipped.', $queueLength));

			return true;
		}

		$cacheConfigs = Cache::configured();
		foreach ($cacheConfigs as $cacheConfigName) {
			Cache::clear(false, $cacheConfigName);
		}
		$this->QueuedTask->updateProgress($id, 1);

		return true;
	}