-
Notifications
You must be signed in to change notification settings - Fork 810
Description
What type of issue is it?
Missing documentation
What article/section is this about?
(No specific link, as this option is not documented anywhere. It should be part of the NuCache settings documentation.)
Describe the issue
While upgrading from Umbraco v8 to v13, I encountered major difficulties retrieving JSON content from cmsContentNu as in previous versions. After hours of troubleshooting, I discovered the following undocumented option:
builder.Services.Configure<NuCacheSettings>(options =>
{
options.NuCacheSerializerType = NuCacheSerializerType.JSON;
});
This configuration option resolves issues where JSON serialization of NuCache content is required. However, it is not documented anywhere. I spent over 8 hours debugging something that could have been solved quickly if this option had been properly documented.
Expected Outcome
This configuration option should be:
Documented in the NuCache settings section.
Clearly explained regarding its purpose and behavior.
If deprecated or not recommended, marked accordingly with an explanation.
Why is this important?
Lack of documentation caused wasted development hours and unnecessary frustration. Proper documentation for this setting will save time for developers, especially those migrating from older versions (v8 to v13).
Steps to Reproduce
- Upgrade an Umbraco project from v8 to v13.
- Attempt to retrieve JSON content from cmsContentNu.
- Notice that the content format has mysteriously changed.
- Spend ages trying to figure out that the "current format" is MessagePack – oh, and for some reason, it has double compression!?!?
- After nearly losing your sanity, stumble upon the undocumented NuCacheSerializerType.JSON setting, which solves everything.