mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-02-05 14:40:33 +08:00
fix(backend): fix avatar url cache invalidation
we don't really need to store the fallback anyways
This commit is contained in:
parent
27846b8282
commit
59e2fd5170
@ -131,7 +131,7 @@ public class AvatarService extends HangarComponent {
|
||||
return "https://docs.papermc.io/img/paper.png";
|
||||
}
|
||||
|
||||
return this.cache.get(type + "-" + subject + "-" + defaultType + "-" + defaultSubject, (key) -> {
|
||||
return this.cache.get(type + "-" + subject, (key) -> {
|
||||
try {
|
||||
return this.restTemplate.getForObject(this.config.security.api().url() + "/avatar/" + type + "/" + subject + (defaultType != null && defaultSubject != null ? "/" + defaultType + "/" + defaultSubject : "") + "?apiKey=" + this.config.sso.apiKey(), String.class);
|
||||
} catch (final HttpStatusCodeException ex) {
|
||||
|
Loading…
Reference in New Issue
Block a user