emreakay / CodeIgniter-Aauth

Authorization, Authentication and User Management library for Codeigniter 2.x and 3.x to make easy user management and permission operations
http://emreakay.com
GNU Lesser General Public License v3.0
393 stars 235 forks source link

ID-Caching #224

Closed chland closed 6 years ago

chland commented 6 years ago

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 commented 6 years ago

This now includes the transaction handling, too.

REJack commented 6 years ago

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

REJack commented 6 years ago

Thanks, I'll merge it now.