You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Umbraco.PublishedCache.HybridCache/Persistence/DatabaseCacheRepository.cs
+28-14Lines changed: 28 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -101,10 +101,11 @@ public void Rebuild(
101
101
|ContentCacheDataSerializerEntityType.Media
102
102
|ContentCacheDataSerializerEntityType.Member);
103
103
104
-
// If contentTypeIds, mediaTypeIds and memberTypeIds are null, truncate table as all records will be deleted (as these 3 are the only types in the table).
105
-
if(contentTypeIds!=null&&!contentTypeIds.Any()
106
-
&&mediaTypeIds!=null&&!mediaTypeIds.Any()
107
-
&&memberTypeIds!=null&&!memberTypeIds.Any())
104
+
// If contentTypeIds, mediaTypeIds and memberTypeIds are all non-null but empty,
105
+
// truncate the table as all records will be deleted (as these 3 are the only types in the table).
106
+
if(contentTypeIdsis not null&&contentTypeIds.Count==0&&
0 commit comments