Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ID-Caching #224

Merged
merged 4 commits into from
Apr 12, 2018
Merged

ID-Caching #224

merged 4 commits into from
Apr 12, 2018

Conversation

chland
Copy link
Contributor

@chland chland commented Apr 9, 2018

This is basically just a "proof-of-concept" for ID-caching (without using CI's caching library).

It precaches all Group/Permission-IDs in the constructor and uses that data in the get_perm/group_id() functions.

I'm "normalizing" the permission/group-names a bit before using them as array keys. I'm doing this so something like

get_perm_id('Test')

and

get_perm_id('test')

will return the same ID.

chland added 3 commits April 9, 2018 11:28
Very simple caching mechanism for Group- and Permission-IDS
Added basic transaction-handling to delete_user(), delete_perm() and delete_group();

(And removed some trailing spaces by accident ;))
The code used ->db instead of ->aauth_db
@chland
Copy link
Contributor Author

chland commented Apr 9, 2018

This now includes the transaction handling, too.

@REJack
Copy link
Collaborator

REJack commented Apr 9, 2018

Sweet 😄 I'll take a look over it later.

@REJack
Copy link
Collaborator

REJack commented Apr 12, 2018

Thanks, I'll merge it now.

@REJack REJack merged commit 5a181c7 into emreakay:master Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants