[RSS Feed/News] \XF\PermissionCache::getContentPerms causes extra queries for non-existent entries if cacheAllContentPerms has been called

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
If \XF\PermissionCache::cacheAllContentPerms() has been called, then $globalCacheRun is set which indicates all possible values for $permissionCombinationId/$contentType have been fetched.

However getContentPerms() function assumes does not check if $globalCacheRun is set for that combination, which can result in additional queries which are known rather than just simply returning null

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom