示例#1
0
 protected function addRecalculateObjectCacheJob(IRelatedObject $object)
 {
     KalturaLog::debug('Recalculating object [' . get_class($object) . '] id [' . $object->getPrimaryKey() . '] cache');
     $objectType = get_class($object);
     $objectKey = self::getObjectKey($object);
     $partnerId = $object->getPartnerId();
     $sessionTypes = self::listObjectSessionTypes($object);
     foreach ($sessionTypes as $sessionKey) {
         list($protocol, $ksType, $host, $userRoles) = explode('_', $sessionKey, 4);
         $userRoles = explode('-', $userRoles);
         kJobsManager::addRecalculateResponseProfileCacheJob($partnerId, $protocol, $ksType, $userRoles, $objectType, $object->getPrimaryKey());
     }
     return true;
 }