Increase default payload size to 100MB (#17382)
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user