Skip to content

Commit aac23d2

Browse files
authored
Merge pull request #7203 from umbraco/cms/update-nucacheserializertype
Clarified usage of NuCacheSerializerType setting
2 parents 4c34eef + 3df2563 commit aac23d2

File tree

2 files changed

+11
-45
lines changed

2 files changed

+11
-45
lines changed

15/umbraco-cms/reference/configuration/cache-settings.md

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -184,29 +184,12 @@ Specifying the `SqlPageSize` will change the size of the paged SQL queries. The
184184

185185
## NuCacheSerializerType
186186

187-
The `NuCacheSerializerType` setting allows developers to specify the serialization format for NuCache content. This setting is particularly relevant for projects migrating from older versions of Umbraco that relied on JSON formats.
187+
The `NuCacheSerializerType` setting allows developers to specify the serialization format for cached content.
188188

189-
To use JSON serialization instead of the default MessagePack:
189+
The fastest and most compact format `MessagePack` is used by default.
190190

191-
### Using 'Program.cs'
191+
An alternate `JSON` option was provided for backward compatibility for the Umbraco cache implementation used from Umbraco 8 to 14 (NuCache).
192192

193-
```csharp
194-
builder.Services.Configure<NuCacheSettings>(options =>
195-
{
196-
options.NuCacheSerializerType = NuCacheSerializerType.JSON;
197-
});
198-
```
193+
It is no longer supported with the cache implementation from Umbraco 15+ based on .NET's Hybrid cache.
199194

200-
### Using 'appsettings.json'
201-
202-
```csharp
203-
{
204-
"Umbraco": {
205-
"CMS": {
206-
"NuCache": {
207-
"NuCacheSerializerType": "JSON"
208-
}
209-
}
210-
}
211-
}
212-
```
195+
The option is kept available only for a more readable format suitable for testing purposes.

16/umbraco-cms/reference/configuration/cache-settings.md

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: Information on the Cache settings section
2+
description: Information on the Cache settings section
33
---
44

55
# Cache Settings
@@ -186,29 +186,12 @@ Specifying the `SqlPageSize` will change the size of the paged SQL queries. The
186186

187187
## NuCacheSerializerType
188188

189-
The `NuCacheSerializerType` setting allows developers to specify the serialization format for NuCache content. This setting is particularly relevant for projects migrating from older versions of Umbraco that relied on JSON formats.
189+
The `NuCacheSerializerType` setting allows developers to specify the serialization format for cached content.
190190

191-
To use JSON serialization instead of the default MessagePack:
191+
The fastest and most compact format `MessagePack` is used by default.
192192

193-
### Using 'Program.cs'
193+
An alternate `JSON` option was provided for backward compatibility for the Umbraco cache implementation used from Umbraco 8 to 14 (NuCache).
194194

195-
```csharp
196-
builder.Services.Configure<NuCacheSettings>(options =>
197-
{
198-
options.NuCacheSerializerType = NuCacheSerializerType.JSON;
199-
});
200-
```
195+
It is no longer supported with the cache implementation from Umbraco 15+ based on .NET's Hybrid cache.
201196

202-
### Using 'appsettings.json'
203-
204-
```csharp
205-
{
206-
"Umbraco": {
207-
"CMS": {
208-
"NuCache": {
209-
"NuCacheSerializerType": "JSON"
210-
}
211-
}
212-
}
213-
}
214-
```
197+
The option is kept available only for a more readable format suitable for testing purposes.

0 commit comments

Comments
 (0)