MVCCaching.Kentico
12.29.4
Kentico Code (Files only) for MVC Caching to be implemented. Still requires Global.asax.cs modifications to fully implement (see Project Site's instructions). These are just the base files, and not compiled since you may want to modify them. Use caution if you do any updates on this package that any changes are not overwritten (default nuget behavior is no overwrite if modified).
See the version list below for details.
Install-Package MVCCaching.Kentico -Version 12.29.4
dotnet add package MVCCaching.Kentico --version 12.29.4
<PackageReference Include="MVCCaching.Kentico" Version="12.29.4" />
paket add MVCCaching.Kentico --version 12.29.4
#r "nuget: MVCCaching.Kentico, 12.29.4"
// Install MVCCaching.Kentico as a Cake Addin
#addin nuget:?package=MVCCaching.Kentico&version=12.29.4
// Install MVCCaching.Kentico as a Cake Tool
#tool nuget:?package=MVCCaching.Kentico&version=12.29.4
Reverting Autofac from 12.29.2
In version 12.29.2, there was a dependency on Autofac 4.9.2 to accomodate the added package Autofac.Extras.DynamicProxy 4.3.0. This caused assembly binding issues in Castle.Core. I've reverted to Autofac 3.5.2 and Autofac.Extras.DynamicProxy2 3.0.7 which is more supported by Kentico MVC.
If you are upgrading from 12.29.2, please ensure Autofac matches this version, you remove the Autofac.Extras.DynamicProxy package.
MVC Caching
MVC Caching for Kentico MVC, extending the DancingGoat Caching Implementation to allow for easy Caching both of Repository calls, database calls, and Output Caching. Sets up and leverages Kentico's cache dependencies.
Installation for Kentico MVC Site (Quick)
- Install the
MVCCaching.Kentico
NuGet Package to your MVC Site - Add this to your Global.asax.cs's Application_Start
#region "AutoFac Cache and other dependency injections"
// Register AutoFac Items
var builder = new ContainerBuilder();
// Register Dependencies for Cache
DependencyResolverConfig.Register(builder);
// Set Autofac Dependency resolver to the builder
DependencyResolver.SetResolver(new AutofacDependencyResolver(builder.Build()));
#endregion
- Optionally create an override the GetVaryByCustomString method to your Application (see the sample Globa.asax.cs GetVaryByCustomString method).
Installation for Kentico MVC Site (Manual)
- Install the
MVCCaching.Base
NuGet Package to your MVC Site - Go to the MVCCaching.Kentico Folder on GitHub
- Copy and include the Infrastructure into your Kentico MVC Site
- Add the code found in the Global.asax.cs Application_Start method into your application's Application_Start
- Optionally add the Globa.asax.cs GetVaryByCustomString method.
Usage
- See Documentation.md for full documentation
Reverting Autofac from 12.29.2
In version 12.29.2, there was a dependency on Autofac 4.9.2 to accomodate the added package Autofac.Extras.DynamicProxy 4.3.0. This caused assembly binding issues in Castle.Core. I've reverted to Autofac 3.5.2 and Autofac.Extras.DynamicProxy2 3.0.7 which is more supported by Kentico MVC.
If you are upgrading from 12.29.2, please ensure Autofac matches this version, you remove the Autofac.Extras.DynamicProxy package.
MVC Caching
MVC Caching for Kentico MVC, extending the DancingGoat Caching Implementation to allow for easy Caching both of Repository calls, database calls, and Output Caching. Sets up and leverages Kentico's cache dependencies.
Installation for Kentico MVC Site (Quick)
- Install the
MVCCaching.Kentico
NuGet Package to your MVC Site - Add this to your Global.asax.cs's Application_Start
#region "AutoFac Cache and other dependency injections"
// Register AutoFac Items
var builder = new ContainerBuilder();
// Register Dependencies for Cache
DependencyResolverConfig.Register(builder);
// Set Autofac Dependency resolver to the builder
DependencyResolver.SetResolver(new AutofacDependencyResolver(builder.Build()));
#endregion
- Optionally create an override the GetVaryByCustomString method to your Application (see the sample Globa.asax.cs GetVaryByCustomString method).
Installation for Kentico MVC Site (Manual)
- Install the
MVCCaching.Base
NuGet Package to your MVC Site - Go to the MVCCaching.Kentico Folder on GitHub
- Copy and include the Infrastructure into your Kentico MVC Site
- Add the code found in the Global.asax.cs Application_Start method into your application's Application_Start
- Optionally add the Globa.asax.cs GetVaryByCustomString method.
Usage
- See Documentation.md for full documentation
Release Notes
Updated GetArgumentCacheKey for CachingRepositoryDecorator to handle IEnuemrable parameters and concatenate the arguments within it.
Dependencies
-
- Autofac (>= 3.5.2)
- Autofac.Extras.DynamicProxy2 (>= 3.0.7)
- MVCCaching.Base (>= 1.0.3)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.