UmbracoOutputCache 11.1.7
See the version list below for details.
dotnet add package UmbracoOutputCache --version 11.1.7
NuGet\Install-Package UmbracoOutputCache -Version 11.1.7
<PackageReference Include="UmbracoOutputCache" Version="11.1.7" />
paket add UmbracoOutputCache --version 11.1.7
#r "nuget: UmbracoOutputCache, 11.1.7"
// Install UmbracoOutputCache as a Cake Addin #addin nuget:?package=UmbracoOutputCache&version=11.1.7 // Install UmbracoOutputCache as a Cake Tool #tool nuget:?package=UmbracoOutputCache&version=11.1.7
What does this package do?
Output caching has been introduced in ASP.NET Core 7.0, which means you need to be on at least version 11 of Umbraco. This package caches all your server side code like the output of your razor templates so that it is not excecuted over and over again as you get more concurrent visitors but will be cached for the duration you set, by default this package sets it to 10 seconds. This should help improve the performance of your Umbraco server bringing down CPU utilization etc.
CacheLifeSpanInSeconds
The default CacheLifeSpanInSeconds is 10 seconds, this can be modified using the Advanced setup procedure Its important to note that content changes you do in the Umbraco backoffice will need at least this configured amount of seconds to reflect in your frontend for your end users.
Simple setup procedure
Just install the package, and your default RenderController will have OutputCache enabled with a 10 seconds cache interval, which means you get OutputCaching enabled by just installing the package.
Advanced setup procedure
The appsettings.json
file can be used to change the OutputCache LifeSpanInSeconds from the default 10 seconds to 5 seconds as shown below
{
"OutputCacheSettings":
{
"CacheLifeSpanInSeconds": 5
}
}
Hardcore setup procedure
Since this package is open source, feel free to reference the source code and build your own OutputCache mechanisms.
For more details on how to configure your own default RenderController check the official Umbraco documentaion
Want to sponsor?
This is a free package, but if you want to sponsor my open source work, here is my GitHub profile
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- Umbraco.Cms.Web.BackOffice (>= 11.1.0)
- Umbraco.Cms.Web.Website (>= 11.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
14.2.0 | 170 | 9/13/2024 |
14.1.0 | 155 | 9/13/2024 |
13.0.0 | 297 | 12/16/2023 |
12.0.0 | 288 | 7/1/2023 |
11.2.2 | 834 | 1/31/2023 |
11.2.1 | 317 | 1/31/2023 |
11.2.0 | 283 | 1/30/2023 |
11.1.10 | 295 | 1/29/2023 |
11.1.9 | 283 | 1/29/2023 |
11.1.8 | 300 | 1/21/2023 |
11.1.7 | 301 | 1/20/2023 |
11.1.6 | 273 | 1/20/2023 |
11.1.5 | 277 | 1/20/2023 |
11.1.4 | 293 | 1/20/2023 |
11.1.3 | 319 | 1/17/2023 |
11.1.2 | 294 | 1/17/2023 |
11.1.1 | 290 | 1/17/2023 |
11.1.0 | 301 | 1/15/2023 |
1.1.1 | 292 | 1/15/2023 |
1.0.0 | 292 | 1/15/2023 |