// since resetting and
// rebuilding cache could be expensive (for many contacts). We might come out with better
// approach in future.
- CRM_Contact_BAO_Contact_Utils::clearContactCaches($contact->id);
+ // HACK: Dave did this due to many donations and other requests failing due to acl_cache table locks
+ // CRM_Contact_BAO_Contact_Utils::clearContactCaches($contact->id);
}
if ($invokeHooks) {
}
// reset the group contact cache for this group
- CRM_Contact_BAO_GroupContactCache::remove();
+ // HACK: Dave disabled this on 12/09/2014 due to a crazy amount of lock wait timeouts on cache tables, causing donations to fail.
+ //CRM_Contact_BAO_GroupContactCache::remove();
if ($editHook) {
CRM_Utils_Hook::post('edit', 'Profile', $contactID, $params);
// also reset the acl cache
$config = CRM_Core_Config::singleton();
if (!$config->doNotResetCache) {
- CRM_ACL_BAO_Cache::resetCache();
+ // HACK: Dave commented this out on 12/09/2014 due to lock wait timeouts on the acl cache that caused donations to fail.
+ //CRM_ACL_BAO_Cache::resetCache();
}
// reset the group contact cache for all group(s)
// if this group is being used as a smart group
- CRM_Contact_BAO_GroupContactCache::remove();
+ // HACK: Dave had to disable this, too!
+ //CRM_Contact_BAO_GroupContactCache::remove();
CRM_Utils_Hook::post('create', 'GroupContact', $groupId, $contactIds);