• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/vk/vkexporteddata.php
  • Класс: BitrixSaleTradingPlatformVkVkExportedData
  • Вызов: VkExportedData::getData
public function getData()
{
	$cacheManager = Application::getInstance()->getManagedCache();
	$result = NULL;
	
	if ($cacheManager->read(self::CACHE_TTL, $this->cacheId))
	{
		$result = $cacheManager->get($this->cacheId);
	}
	else
	{
		$result = $this->getDataFromVk();
		
		$cacheManager->set($this->cacheId, $result);
	}
	
	return $result;
}