CRM-16919 add domain_id to cacheKey in 4.7
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 27 Jul 2015 04:34:09 +0000 (16:34 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Mon, 27 Jul 2015 04:34:09 +0000 (16:34 +1200)
CRM/Financial/BAO/PaymentProcessor.php

index 6e1b723ee1311b2dfb5fe0cf3491f16ee2dbae75..7f5535adc77435a6435dbab570ac929ebb0d07de 100644 (file)
@@ -269,7 +269,7 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
    */
   public static function getAllPaymentProcessors($mode, $reset = FALSE) {
 
-    $cacheKey = 'CRM_Financial_BAO_Payment_Processor_' . ($mode ? 'test' : 'all');
+    $cacheKey = 'CRM_Financial_BAO_Payment_Processor_' . ($mode ? 'test' : 'all') . '_' . CRM_Core_Config::domainID();
     if (!$reset) {
       $processors = CRM_Utils_Cache::singleton()->get($cacheKey);
       if (!empty($processors)) {