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

Add a simple singleton array cache implementation for use when memcached isn't an option

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.3.6
    • Fix Version/s: 3.4.6
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      The patches add a simple singleton based array cache solution to act as a per process cache solution. Many processes in civicrm assumed caching when they were written and can make dozens if not hundreds of redundant database requests for common values such as Option Values and PsuedoConstants depending on the particular processing. By providing a simple caching solution these queries can be limited to once per request without introducing memcached as a project dependency.

      Currently configured to activate with: CIVICRM_USE_ARRAYCACHE = 1 in the civicrm.settings.php file.

        Attachments

        1. arraycache.diff
          0.6 kB
          Graylin Kim
        2. cache.diff
          0.6 kB
          Graylin Kim

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              shadesofgraylin Graylin Kim
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: