• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/ml/model/base.php
  • Класс: Bitrix\Crm\Ml\Model\Base
  • Вызов: Base::getCachedTrainingSetSize
public function getCachedTrainingSetSize()
{
	$cacheId = $this->getName();
	$cache = Application::getInstance()->getCache();

	if (
		$cache->initCache(
			static::TRAINING_SET_SIZE_CACHE_TTL,
			$cacheId,
			static::TRAINING_SET_SIZE_CACHE_PATH
		)
	)
	{
		$result = $cache->getVars();
	}
	else
	{
		$result = $this->getTrainingSetSize();

		$cache->startDataCache();
		$cache->endDataCache($result);
	}

	return $result;
}