Change image enhancer LastConfigurationChange to ConfigurationCacheKey

This commit is contained in:
Eric Reed
2013-05-23 11:45:13 -04:00
parent 8452e2f125
commit f4a199d275
3 changed files with 5 additions and 6 deletions

View File

@@ -642,7 +642,7 @@ namespace MediaBrowser.Controller.Drawing
}
// Cache name is created with supported enhancers combined with the last config change so we pick up new config changes
var cacheKeys = imageEnhancers.Select(i => i.GetType().Name + i.LastConfigurationChange(item, imageType).Ticks).ToList();
var cacheKeys = imageEnhancers.Select(i => i.ConfigurationCacheKey(item, imageType)).ToList();
cacheKeys.Add(originalImagePath + dateModified.Ticks);
return string.Join("|", cacheKeys.ToArray()).GetMD5();