Open Closed

ApplicationConfigurationScript is taking long time to fetch #5745


User avatar
0
viswajwalith created
  • ABP Framework version: v5.1.3
  • UI Type: MVC
  • Database System: SQL Server / MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Every time My application is calling Abp/ApplicationConfigurationScript and it has lots of information due to multiple services. is there any best way to cache this and reduce the loading time from next time?


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can override this service to cache the result.

    https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationConfigurations/AbpApplicationConfigurationAppService.cs#L86

  • User Avatar
    0
    viswajwalith created

    hi

    You can override this service to cache the result.

    https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationConfigurations/AbpApplicationConfigurationAppService.cs#L86

    Thanks for the input, but I think we had to cache based on user right ???

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Yes, because the result include the CurrentUser

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09