Fixed Unexpected high memory usage in XF\Job\PermissionRebuild

Xon

Well-known member
Affected version
2.2.9
PermissionRebuild loads all permission combinations ids without any limits, and then iterates rebuilding permission combinations without releasing the entities or data loaded.

This can result in unexpectedly high memory usage when using large number of nodes/user-groups/per-user-permissions.

This class probably should use the AbstractRebuild to load & rebuild permissions in chunks and to early out sooner.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.13).

Change log:
Rebuild permissions in batches to limit memory usage
There may be a delay before changes are rolled out to the XenForo Community.
 
Top Bottom