jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/376456 )

Change subject: Temporarily hack out cache clearing, for test purposes only
......................................................................


Temporarily hack out cache clearing, for test purposes only

Change-Id: I9c175939e3ab2d36b24d71080e7624fc3c3a94d7
---
M CRM/ACL/BAO/Cache.php
M CRM/Contact/BAO/Contact.php
M CRM/Contact/BAO/GroupContactCache.php
3 files changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Cdentinger: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/CRM/ACL/BAO/Cache.php b/CRM/ACL/BAO/Cache.php
index e1e989c..90030e5 100644
--- a/CRM/ACL/BAO/Cache.php
+++ b/CRM/ACL/BAO/Cache.php
@@ -142,6 +142,7 @@
    * Deletes all the cache entries.
    */
   public static function resetCache() {
+    return;
     // reset any static caching
     self::$_cache = NULL;
 
diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php
index 0460b22..e9089ca 100644
--- a/CRM/Contact/BAO/Contact.php
+++ b/CRM/Contact/BAO/Contact.php
@@ -980,7 +980,7 @@
    * @param bool $isTrashed
    */
   public static function updateContactCache($contactID, $isTrashed = FALSE) {
-
+    return;
     if ($isTrashed) {
       CRM_Contact_BAO_GroupContactCache::removeContact($contactID);
       // This has been moved to here from CRM_Contact_BAO_Contact_Permission 
as that was causing
diff --git a/CRM/Contact/BAO/GroupContactCache.php 
b/CRM/Contact/BAO/GroupContactCache.php
index e0d041a..420ba49 100644
--- a/CRM/Contact/BAO/GroupContactCache.php
+++ b/CRM/Contact/BAO/GroupContactCache.php
@@ -306,6 +306,7 @@
    *   run the function exactly once for all groups.
    */
   public static function remove($groupID = NULL, $onceOnly = TRUE) {
+    return;
     static $invoked = FALSE;
 
     // typically this needs to happy only once per instance
@@ -498,6 +499,7 @@
    * ideal.
    */
   public static function opportunisticCacheFlush() {
+    return;
     if (Civi::settings()->get('smart_group_cache_refresh_mode') == 
'opportunistic') {
       self::flushCaches();
     }

-- 
To view, visit https://gerrit.wikimedia.org/r/376456
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I9c175939e3ab2d36b24d71080e7624fc3c3a94d7
Gerrit-PatchSet: 2
Gerrit-Project: wikimedia/fundraising/crm/civicrm
Gerrit-Branch: master
Gerrit-Owner: Eileen <emcnaugh...@wikimedia.org>
Gerrit-Reviewer: Cdentinger <cdentin...@wikimedia.org>
Gerrit-Reviewer: Ejegg <ej...@ejegg.com>
Gerrit-Reviewer: Mepps <me...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to