Compress true/false from int to bool

This commit is contained in:
nzdev
2021-07-13 19:46:27 +12:00
committed by Sebastiaan Janssen
parent 7c336554db
commit 54b4d6f8d1
2 changed files with 9 additions and 0 deletions

View File

@@ -101,6 +101,10 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
{
property.Value = LZ4Pickler.Pickle(Encoding.UTF8.GetBytes((string)property.Value), LZ4Level.L00_FAST);
}
foreach (var property in propertyAliasToData.Value.Where(x => x.Value != null && x.Value is int intVal))
{
property.Value = Convert.ToBoolean((int)property.Value);
}
}
}
}