If the getVideo()
fails in the code below, nothing is cached.
This 'no result' state should be cached (temporarily), to prevent continual API requests for invalid videos.
$video = NULL;
brightcove_try(function () use ($client_entity, $video_id, &$video) {
/** @var \Brightcove\API\CMS $cms */
list($cms,) = brightcove_create_classes($client_entity);
$video = $cms->getVideo($video_id);
});
if ($video) {
brightcove_cache_set($cid, $video);
return $video;
}
Closed: outdated
6.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.