On Wed, 22 Dec 2004 09:22:44 +0100, Hans Kristian Rosbach <[EMAIL PROTECTED]> wrote: > > Question is, do we care? Would it be alright to only pull in new ACLs once > > at the beginning of each IMAP session? If not, there isn't a whole lot of > > optimization to be done, there's only two places where acl_has_right is > > called several times in succession within a funciton. > > I think we should cache such permissions, but not forever. > > What about adding a 3-min timeout on such caches? That way the admin can > be assured that any changes will propagate to currently active > connections within 3minutes. > > I don't think anybody really needs instant changes, but it could of > course be a config setting. "cache_timeout=0 //minutes"
This all sounds pretty complicated to me. Wouldn't it be simpler to update the acl for a folder when a user issues a "select" statement? I see it like this: The command that's most used is probably FETCH. FETCH will only be issued by a client after a SELECT (Correct me if I'm wrong). So, whenever a client issues a SELECT we update the internal mailbox_t structure with the ACL for that mailbox. Ilja