abpframework / abp

Open Source Web Application Framework for ASP.NET Core. Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET and the ASP.NET Core platforms. Provides the fundamental infrastructure, production-ready startup templates, application modules, UI themes, tooling, guides and documentation.
https://abp.io
GNU Lesser General Public License v3.0
12.31k stars 3.32k forks source link

Cache invalidation `considerUow` problem #19633

Closed ahmetfarukulu closed 2 weeks ago

ahmetfarukulu commented 3 weeks ago

When handling cache invalidation, it's crucial to set the considerUow parameter to true. If this parameter is not set correctly, the cache gets removed immediately. However, if there are other HTTP requests for related cache before the unit of work is complete, the cache might remain in a dirty state.

We should do this for all invalidators such as; PermissionGrantCacheItemInvalidator, TenantConfigurationCacheItemInvalidator etc.

ahmetfarukulu commented 2 weeks ago

https://github.com/abpframework/abp/pull/19671