Skip to content

Commit

Permalink
perf: cache meta tags 24h
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Nov 25, 2024
1 parent 679000a commit b136b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tag/cache_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"github.com/bangumi/server/internal/pkg/cache"
)

const cacheTTL = time.Hour * 4
const cacheTTL = time.Hour * 24

func NewCachedRepo(c cache.RedisCache, r Repo, log *zap.Logger) CachedRepo {
return cacheRepo{cache: c, repo: r, log: log.Named("subject.CachedRepo")}
Expand Down

0 comments on commit b136b60

Please sign in to comment.