Invalidate cloud caches when a new license is loaded (#21579)

Automatic Merge
Этот коммит содержится в:
Nick Misasi
2022-11-02 16:40:26 -04:00
коммит произвёл GitHub
родитель 1ae97fc381
Коммит a541cda9d0
19 изменённых файлов: 69 добавлений и 43 удалений

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

@@ -353,7 +353,7 @@ func (ts *TelemetryService) trackActivity() {
"outgoing_webhooks": outgoingWebhooksCount,
}
if license := ts.srv.License(); license != nil && license.Features.Cloud != nil && *license.Features.Cloud {
if license := ts.srv.License(); license.IsCloud() {
var tmpStorage int64
if usage, err := ts.dbStore.FileInfo().GetStorageUsage(true, false); err == nil {
tmpStorage = usage