Increase default payload size to 100MB (#17382)

This commit is contained in:
Mole
2024-10-28 15:20:35 +01:00
committed by GitHub
parent b05564c03f
commit 621a35f21f

View File

@@ -30,7 +30,12 @@ public static class UmbracoBuilderExtensions
public static IUmbracoBuilder AddUmbracoHybridCache(this IUmbracoBuilder builder)
{
#pragma warning disable EXTEXP0018
builder.Services.AddHybridCache();
builder.Services.AddHybridCache(options =>
{
// We'll be a bit friendlier and default this to a higher value, you quickly hit the 1MB limit with a few languages and especially blocks.
// This can be overwritten later if needed.
options.MaximumPayloadBytes = 1024 * 1024 * 100; // 100MB
});
#pragma warning restore EXTEXP0018
builder.Services.AddSingleton<IDatabaseCacheRepository, DatabaseCacheRepository>();
builder.Services.AddSingleton<IPublishedContentCache, DocumentCache>();