- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/lib/contactcenter.php
- Класс: BitrixIntranetContactCenter
- Вызов: ContactCenter::getMarketplaceAppsByTag
private function getMarketplaceAppsByTag(array $tag, bool $page = false, bool $pageSize = false)
{
$cacheTtl = 43200;
$cacheId = md5(serialize([$tag, $page, $pageSize]));
$cachePath = '/intranet/contact_center/tag/';
$cache = Application::getInstance()->getCache();
if($cache->initCache($cacheTtl, $cacheId, $cachePath))
{
$marketplaceApps = $cache->getVars();
}
else
{
$marketplaceApps = BitrixRestMarketplaceClient::getByTag($tag, $page, $pageSize);
if(!empty($marketplaceApps['ITEMS']))
{
$cache->startDataCache();
$cache->endDataCache($marketplaceApps);
}
}
return $marketplaceApps;
}