Skip to content

Missing Documentation for NuCache JSON Serialization Option in Umbraco v13 #6734

@devlopaag

Description

@devlopaag

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

  1. Upgrade an Umbraco project from v8 to v13.
  2. Attempt to retrieve JSON content from cmsContentNu.
  3. Notice that the content format has mysteriously changed.
  4. Spend ages trying to figure out that the "current format" is MessagePack – oh, and for some reason, it has double compression!?!?
  5. After nearly losing your sanity, stumble upon the undocumented NuCacheSerializerType.JSON setting, which solves everything.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions