• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/queue/cache.php
  • Класс: BitrixImOpenLinesQueueCache
  • Вызов: Cache::delete
public function delete(): bool
{
	$result = false;

	if($this->isError === false)
	{
		$result = true;

		if(
			!empty($this->userId)
			&& !empty($this->lineId)
		)
		{
			$this->taggedCache->clearByTag(self::getOperatorCacheTag($this->userId, $this->lineId));
		}

		if (!empty($this->userId))
		{
			$this->taggedCache->clearByTag(self::getUserCountLinesCacheTag($this->userId));
			$this->taggedCache->clearByTag(self::getUserIsOperatorCacheTag($this->userId));
		}
	}

	return $result;
}