PropertyValueConverter - more WIP
This commit is contained in:
@@ -55,7 +55,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
|
||||
}
|
||||
|
||||
public override bool HasValue => _sourceValue != null
|
||||
&& ((_sourceValue is string) == false || string.IsNullOrWhiteSpace((string)_sourceValue) == false);
|
||||
&& (!(_sourceValue is string) || string.IsNullOrWhiteSpace((string) _sourceValue) == false);
|
||||
|
||||
private class CacheValues
|
||||
{
|
||||
|
||||
@@ -27,13 +27,13 @@ namespace Umbraco.Web.PublishedCache.NuCache
|
||||
// snapshot cache (if we don't want to pollute the snapshot cache with short-lived
|
||||
// data) depending on settings
|
||||
// for members, always cache in the facade cache - never pollute snapshot cache
|
||||
var facade = (Facade)_facadeAccessor.Facade;
|
||||
var facade = (Facade) _facadeAccessor.Facade;
|
||||
var cache = facade == null
|
||||
? null
|
||||
: ((IsPreviewing == false || FacadeService.FullCacheWhenPreviewing) && (IsMember == false)
|
||||
? facade.SnapshotCache
|
||||
: facade.FacadeCache);
|
||||
return GetCacheValues(cache);
|
||||
return GetCacheValues(cache);
|
||||
}
|
||||
|
||||
protected override CacheValues GetFacadeCacheValues()
|
||||
|
||||
Reference in New Issue
Block a user