Atividades de "hayash"

how can i use this class to refresh permission cache

  • ABP Version 6.0.2.
  • MVC.
  • SQL Server.
  • Tiered for MVC.

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

Yes that fixed it, but now when I click on New Question button in the following page:

I got the following exception:

Mostrando 11 até 20 de 32 registros
Made with ❤️ on ABP v8.2.0-preview Updated on março 25, 2024, 15:11