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

static value caching not working in getImage function

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.2
    • Fix Version/s: 3.4.3
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      I just turned devel queries on to look for the query being generated at a URL like civicrm/group/search?reset=1&force=1&context=smog&gid=2

      & I noticed this query runs 50 times (one per row) to generate the page. Or 100 times if I view 100 rows

      SELECT id FROM civicrm_uf_group WHERE ( civicrm_uf_group.name = 'summary_overlay' )

      It's the 'getImage' function according to devel - presumably this which would seem to have a static cache in place but?

      CRM_Contact_BAO_Contact_Utils::getImage

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: