[MediaWiki-commits] [Gerrit] wikimedia...civicrm[master]: Temporarily hack out cache clearing, for test purposes only

2017-09-06 Thread jenkins-bot (Code Review)
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 
Gerrit-Reviewer: Cdentinger 
Gerrit-Reviewer: Ejegg 
Gerrit-Reviewer: Mepps 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] wikimedia...civicrm[master]: Temporarily hack out cache clearing, for test purposes only

2017-09-06 Thread Eileen (Code Review)
Eileen has uploaded a new change for review. ( 
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, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm/civicrm 
refs/changes/56/376456/1

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..cdd4977 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

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9c175939e3ab2d36b24d71080e7624fc3c3a94d7
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm/civicrm
Gerrit-Branch: master
Gerrit-Owner: Eileen 

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