Timeline for Can someone help me understand smart group caching so I can prevent these deadlocks?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 24, 2017 at 8:16 | comment | added | naomi | The only way I am managing to deal with this is to replace all the dashlets with Drupal Views. They work much better than CiviCRM report dashlets, but I don't like the security implications of giving so much access to the CiviCRM website to the Drupal user. It's not suitable for our setup at all because we have a public facing website with very confidential data in Civi. I am rather upset about this | |
Oct 24, 2017 at 8:14 | comment | added | naomi | I've changed all the ACL target groups to normal groups . None use smart groups at all. But we are still getting the deadlocks. It seems that the ACL cache is getting rebuilt every time the smart groups change, even though there is no need whatsoever for that to happen any more | |
Oct 16, 2017 at 20:30 | comment | added | Parvez Saleh | I think thats the right approach, smart groups are heavy on cache refreshes especially if constantly being required for ACLs | |
Oct 16, 2017 at 11:42 | comment | added | naomi | Amount of ACL roles: 30. Amount of ACLs : 175 (seems excessive, but that's the result of "select count(*) from civicrm_acl where is_active = 1"). Amount of said ACLs whose object is a smart group: 10. My next test will be to rejig things so that no ACLs rely on smart groups at all, and then see if this resolves the issue. | |
Oct 16, 2017 at 11:35 | comment | added | naomi | Sorry, amount of ACL groups is 22 | |
Oct 16, 2017 at 11:07 | comment | added | naomi | Amount of contacts: 7333 Amount of smart groups: 42 Amount of ACL groups: 9 | |
Oct 10, 2017 at 16:26 | comment | added | naomi | Thank you, this is helpful. From this, it seems that that I did the right thing in turning off the cron job, as there is no point having it given that the cache is set to 0 . Is that correct? I will get back to you with the information you requested, in the next few days. I would love it if we could get to the bottom of this! | |
Oct 9, 2017 at 16:05 | history | answered | Parvez Saleh | CC BY-SA 3.0 |