Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-14266

Migrator permission tool is unable to scale

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Invalid
    • 3.1.6
    • None
    • Extensions
    • None

    Description

      The migrator permission tool cannot scale well in its current state. Its usage of phpbb\auth\auth's acl_clear_prefetch method in every call to its add, remove, permission_set, permission_unset, and role_remove methods results in terrible performance. For larger extensions such as Titania where the largest migration has ~100 total calls to the permission tool's methods it easily takes more than 5 minutes to install the extension. Removing the calls to acl_clear_prefetch clears the bottleneck resulting in an instant installation.

      The method takes care of clearing the entire user base's permission cache in the users table and rebuilding the role cache. This should be done with a single call after running the migration set.

      Attachments

        Activity

          People

            Marc Marc
            prototech prototech [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: