Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4380

CRM/Core/Component.php should load only active components

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.2.2
    • Fix Version/s: 3.2
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Currently, the function getComponents() in CRM/Core/Component.php loads all civicrm components, even if they are not active (via the admin settings).
      It might provide a small performance boost if the function loads only the necessary components.

      The function is called when we do API calls (ex: civicrm_contact_get).

      Sample patch attached. (works for me on a production site, I moved CRM/Pledge out of my web directory, and the site does not cause an error)

      matt (bgm on #civicrm)

        Attachments

          Activity

            People

            • Assignee:
              mover Michał Mach
              Reporter:
              mlutfy Mathieu Lutfy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: