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

Fix for ID caching #230

Merged
merged 2 commits into from
May 16, 2018
Merged

Fix for ID caching #230

merged 2 commits into from
May 16, 2018

Conversation

korllan
Copy link
Contributor

@korllan korllan commented May 7, 2018

Rebuilds the cache every time a group or permission is added / deleted (create_perm, delete_perm, create_group, delete_group).

Rebuilds the cache every time a group or permission is added / deleted (create_perm, delete_perm, create_group, delete_group).
@korllan korllan changed the title Fix for ID caching (#224) Fix for ID caching (#227) May 7, 2018
@korllan korllan changed the title Fix for ID caching (#227) Fix for ID caching May 7, 2018
@kanandanovaes
Copy link

@REJack Merge pls ?

$query = $this->aauth_db->get($this->config_vars['perms']);

foreach ($query->result() as $row) {
$key = str_replace(' ', '', trim(strtolower($row->name)));
$this->cache_perm_id[$key] = $row->id;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This curly bracket should not removed! It's cause a error.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@REJack Sorry, my mistake, I edited this by the tablet haha, fixed

@REJack REJack merged commit 7ae5ef5 into emreakay:master May 16, 2018
Copy link
Contributor

@omkartapale omkartapale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function name line should be as follows:
private function precache_perms() {

Observer the missing '()' after the function name

/**
* precache_perms() caches all permission IDs for later use.
*/
private function precache_perms {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function name line should be as follows:
private function precache_perms() {

Observer the missing '()' after the function name

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the same thing with the function
precache_groups

/**
* precache_groups() caches all group IDs for later use.
*/
private function precache_groups {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function name line should be as follows:
private function precache_groups() {

Observer the missing '()' after the function name

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will address issue #234

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.

4 participants