• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/cashbox/manager.php
  • Класс: BitrixSaleCashboxManager
  • Вызов: Manager::getListFromCache
static function getListFromCache()
{
	$cacheManager = MainApplication::getInstance()->getManagedCache();

	if($cacheManager->read(self::TTL, self::CACHE_ID))
		$cashboxList = $cacheManager->get(self::CACHE_ID);

	if (empty($cashboxList))
	{
		$cashboxList = array();

		$dbRes = CashboxTable::getList();
		while ($data = $dbRes->fetch())
			$cashboxList[$data['ID']] = $data;

		$cacheManager->set(self::CACHE_ID, $cashboxList);
	}

	return $cashboxList;
}