feat: optimize cache update strategy

This commit is contained in:
codytseng 2025-11-09 16:09:11 +08:00
parent c11fc56209
commit fe9b55dcfd
2 changed files with 12 additions and 4 deletions

View file

@ -497,19 +497,19 @@ class IndexedDbService {
},
{
name: StoreNames.RELAY_LIST_EVENTS,
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 // 1 day
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 * 30 // 30 day
},
{
name: StoreNames.FOLLOW_LIST_EVENTS,
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 // 1 day
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 * 30 // 30 day
},
{
name: StoreNames.BLOSSOM_SERVER_LIST_EVENTS,
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 // 1 days
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 * 30 // 30 day
},
{
name: StoreNames.RELAY_INFOS,
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 // 1 days
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 * 30 // 30 day
},
{
name: StoreNames.PIN_LIST_EVENTS,