Forum OpenACS Development: Re: Thread-only permissions caching

Collapse
Posted by Lars Pind on
An alternative scheme would be cache permissions in an nsv, but flush the entire thing on any permissions grant/revoke. Wait, it would also have to be flushed on any group membership change.

Would that cover it? It should still be an improvement over what we have today.

We also talked about caching permissions for 'read' for The Public and Registered Users specifically. Or 'read' for Public and Registered on all packages, at least. What's the status on that?

/Lars

Collapse
Posted by Jeff Davis on
I don't think permissions caching is really worth it with the changes Don made (typical times for a perm check are on the order of a few ms) and getting it right is pretty hard since a lot of group manipulation does not go through a tcl api.

Caching read for public probably does make sense though; Don talked about doing this but I don't know if there is any code anywhere for it.

And yes, you should use the permissions view in the subsites/packages query rather than issuing queries after the fact.

Collapse
Posted by Lars Pind on
Joining with acs_permissions_all view is the preferred way to go?

/Lars