Skip to content

Commit 4526cc4

Browse files
committed
Document cache error hiding behavior in development
1 parent 67c708f commit 4526cc4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/en/framework/fundamentals/caching.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,8 @@ Configure<AbpDistributedCacheOptions>(options =>
224224

225225
> Write that code inside the `ConfigureServices` method of your [module class](../architecture/modularity/basics.md).
226226
227-
#### Available Options
228227

229-
* `HideErrors` (`bool`, default: `true`): Enables/disables hiding the errors on writing/reading values from the cache server.
228+
* `HideErrors` (`bool`, default: `true`): Enables or disables hiding errors when reading from or writing to the cache server. In the **development** environment, this option is **disabled** to help developers detect and fix any cache server issues.
230229
* `KeyPrefix` (`string`, default: `null`): If your cache server is shared by multiple applications, you can set a prefix for the cache keys for your application. In this case, different applications can not overwrite each other's cache items.
231230
* `GlobalCacheEntryOptions` (`DistributedCacheEntryOptions`): Used to set default distributed cache options (like `AbsoluteExpiration` and `SlidingExpiration`) used when you don't specify the options while saving cache items. The default value uses the `SlidingExpiration` as 20 minutes.
232231

docs/en/release-info/migration-guides/abp-10-0.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,12 @@ We added a failure retry policy to `AbpEventBusBoxesOptions` (see `InboxProcesso
7575

7676
See the [Add failure retry policy to InboxProcessor](https://github.com/abpframework/abp/pull/23563) PR for more information.
7777

78+
### Disable Cache Error Hiding in Development Environment
79+
80+
Starting from **ABP 10.0**, the [`HideErrors`](../../framework/fundamentals/caching#Available-Options) option of `AbpDistributedCacheOptions` is **disabled by default in the development environment**.
81+
82+
By default, ABP hides and logs cache server errors to keep the application running even when the cache is unavailable.
83+
However, in the **development environment**, errors are no longer hidden so that developers can immediately detect and fix **any cache server issues** (such as connection, configuration, or runtime errors).
84+
7885
## PRO
7986

0 commit comments

Comments
 (0)