私が理解しているように、アクションが子アクションとして呼び出された場合、OutputCacheAttribute のキャッシュ プロファイルをセットアップすることは不可能です。
System.Web.Mvc.OutputCacheAttribute.ValidateChildActionConfiguration() 内のコードのため
if (!String.IsNullOrWhiteSpace(CacheProfile) ||
!String.IsNullOrWhiteSpace(SqlDependency) ||
!String.IsNullOrWhiteSpace(VaryByContentEncoding) ||
!String.IsNullOrWhiteSpace(VaryByHeader) ||
_locationWasSet || _noStoreWasSet) {
throw new InvalidOperationException(MvcResources.OutputCacheAttribute_ChildAction_UnsupportedSetting);
}
キャッシュプロファイルをセットアップする他の方法はありますか?