CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • ACL Population
Pages: [1]

Author Topic: ACL Population  (Read 322 times)

JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
ACL Population
December 19, 2014, 06:04:50 am
Hi CiviForumers,

We're using the ACL for our new search function (determining which teacher can see and search by which alumni). We've encountered the following issues:

1) We don't know the conditions under which the ACL is regenerated, or is meant to be being regenerated.

2) The ACL cache needs to be repopulated each time the search page is loaded.

3) Unrelated events seem to wipe the ACL cache (and we're not sure what populates it). For example, deleting a group, any group, even of entirely unrelated individuals, seems to purge the ACL, and break our search.

We're considering at the moment writing our own cache table to prevent issues 2 (notable performance hit) and 3 (outright bug). Entries would be created and removed depending on the status of the student's relationship to the logged in school.

What are your thoughts here?

John
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: ACL Population
December 19, 2014, 09:02:41 am

Most / all the acl code was written in the 1.x / 2.x time frame (i.e. 6-8 years ago) and i suspect is showing its age / scale / inexperience at the time of writing :(

Would be good if FF could restructure and clean up the current cache structure, rather than introducing a new cache table. Will help both FF and the larger community

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • ACL Population

This forum was archived on 2017-11-26.