Umbraco deaktivieren Nucache Database Composer

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Umbraco deaktivieren Nucache Database Composer

by Anonymous » 27 Feb 2025, 12:08

Ich habe ein Problem (in der logarithmischen Datei):
"Eine ungehandelte Ausnahme wurde von der Anwendung ausgelöst." durch einen anderen Prozess. "
In Umbraco DOC raten Sie implementieren: < /p>
in AppStings.json < /p>
"Umbraco": {
"CMS": {
"NuCache": {
"BTreeBlockSize": 4096
}
}
}
< /code>
public class DisableNuCacheDatabaseComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
var settings = new
Umbraco.Cms.Infrastructure.PublishedCache.PublishedSnapshotServiceOptions
{
IgnoreLocalDb = true
};
builder.Services.AddSingleton(settings);
}
}
< /code>
How and where can i use/invoke the Compose method of DisableNuCacheDatabaseComposer ? In Startup file? In Program file?
Thanks in advance and have a nice day

Top