Having updated a site to umb 6.2.5 I've started to use mini profiler.. and seeing lots of database calls for my menu builders.. investigation reveals that any call to HasAccess seems to cause a database hit... is that normal? Shouldn't front end this just be hitting the unbraco.config and access.config files?
Here's what I've tried. Any pointers?
foreach (var item in Model.Children) { if (Umbraco.Web.UmbracoHelper.MemberHasAccess(item.Id, item.Path)) { @item.Name <br /> } }
hasAccess causing database calls??
Having updated a site to umb 6.2.5 I've started to use mini profiler.. and seeing lots of database calls for my menu builders.. investigation reveals that any call to HasAccess seems to cause a database hit... is that normal? Shouldn't front end this just be hitting the unbraco.config and access.config files?
Here's what I've tried. Any pointers?
is working on a reply...