Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V15: Make default max payload size more friendly #17382

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

nikolajlauridsen
Copy link
Contributor

@nikolajlauridsen nikolajlauridsen commented Oct 28, 2024

Defaults the cache MaximumPayloadBytes to 100MB instead of 1 MB, otherwise large content nodes may throw an error, especially if there's multiple languages and large properties like blockgrid is used.

This setting can always be overwritten using

public class MyComposer : IComposer
{
    public void Compose(IUmbracoBuilder builder)
    {
#pragma warning disable EXTEXP0018
        builder.Services.AddOptions<HybridCacheOptions>().Configure(x =>
        {
            x.MaximumPayloadBytes = 1024*1024;
        });
#pragma warning restore EXTEXP0018
    }
}

@bergmania bergmania merged commit 621a35f into release/15.0 Oct 28, 2024
12 of 14 checks passed
@bergmania bergmania deleted the v15/hotfix/friendlier-payload-size branch October 28, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants