• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/product/catalogprovider.php
  • Класс: BitrixCatalogProductCatalogProvider
  • Вызов: CatalogProvider::isExistsHitCache
static function isExistsHitCache($type, $key, array $fields = []): bool
	{
		$isExists = false;
		if (!empty(self::$hitCache[$type]) && !empty(self::$hitCache[$type][$key]))
		{
			$isExists = true;
			if (!empty($fields) && is_array($fields) && is_array(self::$hitCache[$type][$key]))
			{
				foreach ($fields as $name)
				{
					if (!array_key_exists($name, self::$hitCache[$type][$key]))
					{
						$isExists = false;
						break;
					}
				}
			}
		}

		return $isExists;
	}