1
0
mirror of https://github.com/badges/shields.git synced 2025-04-18 19:44:04 +03:00

tweak default cache lengths by category (#10919)

This commit is contained in:
chris48s 2025-03-06 17:30:49 +00:00 committed by GitHub
parent be9cdc2276
commit 5fb5a30188
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,12 +150,18 @@ class BaseService {
static get _cacheLength() {
const cacheLengths = {
build: 30,
license: 3600,
version: 300,
debug: 60,
downloads: 900,
rating: 900,
social: 900,
'platform-support': 300,
size: 300,
version: 300,
chat: 1800,
downloads: 1800,
rating: 1800,
social: 1800,
license: 14400,
}
return cacheLengths[this.category]
}