Base solution for your next web application

Activities of "hung.le@cyberlotus"

Try

var cacheKey = RoleId + "@" + (TenantId ?? 0); _cacheManager.GetRolePermissionCache().Remove(cacheKey);

I tried iCacheManager.GetRolePermissionCache().Remove("68@6"); but the key "n:AbpZeroRolePermissions,c:68@6" is still on redis cache server. I think I have problem with ICacheManager.

I using the tenant's Id on here:

Thanks.

I tried remove directly the key cache as using iCacheManager.GetRolePermissionCache().Remove("n:AbpZeroRolePermissions,c:68@6"); but it's not working.

Sorry, I can not share my project source code with you. I using method await UpdateGrantedPermissionsAsync(role, input.GrantedPermissionNames, input.TenantId); to change the permissions of a role.

And after i change the permissions, on redis cache it is not remove and the content is not change:

i tried add or remove the permissions of a role, but the content is still not change on redis cache (redis-cli).

Is web server 2 an angular application? No, on server 1 (include backend .net core + angular application) for admin, on server 2: (.net core + angular application) for customer users.

After the user logout and login on the product application again but still not get the latest permission information.

I'm using ICacheManager to remove key("n:AbpZeroRolePermissions,c:1@0") on redis server but it is not working, it's still on redis server.

_cacheManager.GetCache(KEY).Remove(VALUE);

  • My product version is v6.8.0
  • My product type is ASP.NET CORE & Angular

Thanks.

Showing 1 to 7 of 7 entries