how can i use this class to refresh permission cache
hello dear.
this problem solved when i access project in localhost by add some configuration like this.
Configure<AbpDistributedCacheOptions>(options =>
{
options.GlobalCacheEntryOptions = new DistributedCacheEntryOptions()
{
//AbsoluteExpiration = DateTimeOffset.UtcNow.AddSeconds(60),
SlidingExpiration = TimeSpan.FromSeconds(60)//20 mins default
};
});
but when i access project from external api permissions does not updated without restarting bool why ?
Hello Anjali_Musmade
yes it's right ,Thank you so much for your response :)
Regards.
i try to use ICacheManager but does not contain this function => GetUserPermissionCache and i put
Configure(options => { options.GlobalCacheEntryOptions = new DistributedCacheEntryOptions() { AbsoluteExpiration = DateTimeOffset.UtcNow.Addseconds(60)//60 second };
});
it's work but the project has become very slow can you help me :(
i have a problem when i update permissions for specific user or role the permissions cache does not refresh i want a solution to refresh cache without restarting project. :) my project contains main application and group of modules.
I can try to test it if you can provide the database script or add those data in DataSeeder, I need to reporduce it to diagnose.
Thank you, I send you the database script.
I tried it on many forms records and always appear, im afraid it's something to do with the database.
Hello, Can you share your project with galip.erdem@volosoft.com so I can take a look at?
Done