@@ -123,7 +123,8 @@ private static IPublishedContent ConvertValue(string id, string contentTypeAlias
123
123
124
124
private static PreValueCollection GetPreValuesCollectionByDataTypeId ( int dataTypeId )
125
125
{
126
- return ( PreValueCollection ) ApplicationContext . Current . ApplicationCache . RuntimeCache . GetCacheItem ( "Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.GetPreValuesCollectionByDataTypeId_" + dataTypeId ,
126
+ return ( PreValueCollection ) ApplicationContext . Current . ApplicationCache . RuntimeCache . GetCacheItem (
127
+ string . Concat ( "Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.GetPreValuesCollectionByDataTypeId_" , dataTypeId ) ,
127
128
( ) => Services . DataTypeService . GetPreValuesCollectionByDataTypeId ( dataTypeId ) ) ;
128
129
}
129
130
@@ -133,17 +134,19 @@ private static ContentTypeContainer GetContentTypesByAlias(string contentTypeAli
133
134
if ( Guid . TryParse ( contentTypeAlias , out contentTypeGuid ) )
134
135
contentTypeAlias = GetContentTypeAliasByGuid ( contentTypeGuid ) ;
135
136
136
- return ( ContentTypeContainer ) ApplicationContext . Current . ApplicationCache . RuntimeCache . GetCacheItem ( "Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.GetContentTypesByAlias_" + contentTypeAlias ,
137
+ return ( ContentTypeContainer ) ApplicationContext . Current . ApplicationCache . RuntimeCache . GetCacheItem (
138
+ string . Concat ( "Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.GetContentTypesByAlias_" , contentTypeAlias ) ,
137
139
( ) => new ContentTypeContainer
138
- {
139
- PublishedContentType = PublishedContentType . Get ( PublishedItemType . Content , contentTypeAlias ) ,
140
- ContentType = Services . ContentTypeService . GetContentType ( contentTypeAlias )
141
- } ) ;
140
+ {
141
+ PublishedContentType = PublishedContentType . Get ( PublishedItemType . Content , contentTypeAlias ) ,
142
+ ContentType = Services . ContentTypeService . GetContentType ( contentTypeAlias )
143
+ } ) ;
142
144
}
143
145
144
146
private static string GetContentTypeAliasByGuid ( Guid contentTypeGuid )
145
147
{
146
- return ( string ) ApplicationContext . Current . ApplicationCache . RuntimeCache . GetCacheItem ( "Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.GetContentTypeAliasByGuid_" + contentTypeGuid ,
148
+ return ( string ) ApplicationContext . Current . ApplicationCache . RuntimeCache . GetCacheItem (
149
+ string . Concat ( "Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.GetContentTypeAliasByGuid_" , contentTypeGuid ) ,
147
150
( ) => Services . ContentTypeService . GetAliasByGuid ( contentTypeGuid ) ) ;
148
151
}
149
152
}
0 commit comments