MM-13238 Fix link cache being cleared too often with image proxy (#9981)

Этот коммит содержится в:
Harrison Healey
2018-12-12 13:11:53 -05:00
коммит произвёл GitHub
родитель 6ced89255b
Коммит aff3156c56

Просмотреть файл

@@ -26,7 +26,7 @@ func (a *App) InitPostMetadata() {
// Dump any cached links if the proxy settings have changed so image URLs can be updated
a.AddConfigListener(func(before, after *model.Config) {
if (before.ServiceSettings.ImageProxyType != after.ServiceSettings.ImageProxyType) ||
(before.ServiceSettings.ImageProxyURL != after.ServiceSettings.ImageProxyType) {
(before.ServiceSettings.ImageProxyURL != after.ServiceSettings.ImageProxyURL) {
linkCache.Purge()
}
})