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

UpdateConfigBackend doesn't clear the "memory" caches

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.14, 4.5, 4.6
    • Fix Version/s: None
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      The cache clearing button at example.com/civicrm/admin/setting/updateConfigBackend?reset=1 only clears the cache if it's in the database and not in memcache, etc.

      In CRM/Admin/Form/Settings/UpdateConfigBackend.php:

        public function postProcess() {
          if (!empty($_POST['_qf_UpdateConfigBackend_next_cleanup'])) {
            $config = CRM_Core_Config::singleton();
            // cleanup templates_c directory
            $config->cleanup(1, FALSE);
            // clear db caching
            CRM_Core_Config::clearDBCache();
            parent::rebuildMenu();
            CRM_Core_BAO_WordReplacement::rebuild();
      

        Attachments

          Activity

            People

            • Assignee:
              colemanw Coleman Watts
              Reporter:
              herb@freeform Herb
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: