API
Version 7.x > API > RoleInfoProvider caching View modes: 
User avatar
Certified Developer v6
Certified Developer v6
Dave - 10/28/2013 2:37:58 PM
   
RoleInfoProvider caching
Hi,

Is using the RoleInfoProvider supposed to cache? I'm using RoleInfoProvider.GetRoleInfo(int) and it seems to be calling the database each time. Is there a setting I might be missing somewhere to enable this? Everything I've looked at in Settings and web.config look correct...

Thanks,
Dave

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 11/4/2013 11:10:00 AM
   
RE:RoleInfoProvider caching
Hello Dave,

What will be the purpose of caching this Provider? If you are calling the API method you want to get the actual data stored in the Database, right? From my point of view it doesn't make sense to use caching here, but I'm open to your ideas.

Feel free to take a look at the Developers Guide -> Caching options and Caching in custom code.

Best regards,
Martin Danko