Navigation Refresh/Cache Issue #6768
Unanswered
DrastiGohel
asked this question in
Help
Replies: 1 comment 3 replies
-
You may need to invalidate menu cache on permission—role update. It should be automatically in default. The cache is storing left navigation for infinite time per user, until the generation key is changed. You can prefer to shorten the cache timeout. Or you can manually invalidate the UserRoleRow generation key.
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello All,
I am facing Navigation refresh issue after assigning roles.
Scenario:
User do not have role permission for a particular section, if a role is assigned to a User, it takes a while for a menu item to get visible in incognito Navigation.
What is needed:
Once the role is assigned the menu should be available to a user immediately in incognito as well as normal log-in.
Is there any code piece to add for that?
Below is the code for NavigationModelFactory:
Below is code for NavigationModel:
`using System;
using System.Collections.Generic;
using System.Security.Claims;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Serenity.Abstractions;
using Serenity.Navigation;
using Serenity.Web;
using ServicesProject.Administration;
namespace ServicesProject.Navigation
{
public class NavigationModel : INavigationModel
{
private NavigationItem activeItem;
private List activePath;
}`
Serenity Version: 6.4.8
Beta Was this translation helpful? Give feedback.
All reactions