增加图标页面的缓存处理

This commit is contained in:
Argo-Lenovo 2017-01-02 14:36:44 +08:00
parent fbc6fa3b1d
commit 0a9a342f2b
2 changed files with 10 additions and 0 deletions

View File

@ -84,6 +84,7 @@ namespace Bootstrap.Admin.Controllers
///
/// </summary>
/// <returns></returns>
[OutputCache(CacheProfile = "IconView")]
public PartialViewResult IconView()
{
return PartialView("IconView");

View File

@ -66,6 +66,15 @@
<licenseManagement licenseKey="4q01gzG5cWBr2moT7/9pMProPA0BIHpWimETcWj/gAutBuPANJR1uSrTbrdxyNWl" permissionKey="FB457BEDB2D84B091B1C4C8AA0F06D77"/>
<system.web>
<caching>
<outputCache enableOutputCache="true"></outputCache>
<outputCacheSettings>
<outputCacheProfiles>
<add name="IconView" duration="3600" location="Client" />
</outputCacheProfiles>
</outputCacheSettings>
</caching>
<compilation debug="true" targetFramework="4.5"/>
<httpRuntime targetFramework="4.5"/>
<authentication mode="Forms">