Skip to content
Snippets Groups Projects
Commit f4de748f authored by Seamus Lee's avatar Seamus Lee
Browse files

Add in uniqueness to cache keys to mitigate clashes on multisite installs

parent 5976ea1d
Branches
Tags
No related merge requests found
......@@ -1318,6 +1318,7 @@ WHERE civicrm_contact.id = " . CRM_Utils_Type::escape($id, 'Integer');
$cacheKeyString .= $showAll ? '_1' : '_0';
$cacheKeyString .= $isProfile ? '_1' : '_0';
$cacheKeyString .= $checkPermission ? '_1' : '_0';
$cacheKeyString .= '_' . CRM_Core_Config::domainID() . '_';
$fields = CRM_Utils_Array::value($cacheKeyString, self::$_importableFields);
......
......@@ -503,6 +503,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
$cacheKey .= $onlyParent ? '_1_' : '_0_';
$cacheKey .= $onlySubType ? '_1_' : '_0_';
$cacheKey .= $checkPermission ? '_1_' : '_0_';
$cacheKey .= '_' . CRM_Core_Config::domainID() . '_';
$cgTable = CRM_Core_DAO_CustomGroup::getTableName();
......
......@@ -159,7 +159,7 @@ class CRM_Core_BAO_Navigation extends CRM_Core_DAO_Navigation {
* returns associated array
*/
public static function getNavigationList() {
$cacheKeyString = "navigationList";
$cacheKeyString = "navigationList_" . CRM_Core_Config::domainID();
$whereClause = '';
$config = CRM_Core_Config::singleton();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment