Reduce avatar cache size

This commit is contained in:
Nicolas Werner 2020-01-14 17:48:01 +01:00
parent 3f02b0bf56
commit cdb11b1819

View file

@ -31,8 +31,6 @@ namespace AvatarProvider {
void void
resolve(const QString &avatarUrl, int size, QObject *receiver, AvatarCallback callback) resolve(const QString &avatarUrl, int size, QObject *receiver, AvatarCallback callback)
{ {
avatar_cache.setCacheLimit(1024 * 1024);
const auto cacheKey = avatarUrl + "_size_" + size; const auto cacheKey = avatarUrl + "_size_" + size;
if (avatarUrl.isEmpty()) if (avatarUrl.isEmpty())