XenForo Deadlock on permission API

S

Simplilearn

Guest
Hi,

we created a custom endpoint for forum permission and we are using the existing code from xenforo,

PHP:

Code:
$permissionUpdater = $this->service('XF:UpdatePermissions');
        $permissionUpdater->setContent('node', $forumId)->setUser($user);
        $permissionUpdater->updatePermissions($permissions);

we are calling this API from our system through the Kafka cluster. 3 instances are calling this API frequently because of this in the community system we are getting a deadlock error...

Read more

Continue reading...