mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-13 04:57:29 -06:00
[chore] renames the GTS caches to DB caches (#3127)
* renames the `GTS` caches to `DB` caches, as it better references what they are * change remaining Caches.GTS uses to Caches.DB
This commit is contained in:
parent
325b4a2b4a
commit
63fc9b6c3e
39 changed files with 376 additions and 378 deletions
|
|
@ -125,7 +125,7 @@ func (r *ruleDB) PutRule(ctx context.Context, rule *gtsmodel.Rule) error {
|
|||
}
|
||||
|
||||
// invalidate cached local instance response, so it gets updated with the new rules
|
||||
r.state.Caches.GTS.Instance.Invalidate("Domain", config.GetHost())
|
||||
r.state.Caches.DB.Instance.Invalidate("Domain", config.GetHost())
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
@ -143,7 +143,7 @@ func (r *ruleDB) UpdateRule(ctx context.Context, rule *gtsmodel.Rule) (*gtsmodel
|
|||
}
|
||||
|
||||
// invalidate cached local instance response, so it gets updated with the new rules
|
||||
r.state.Caches.GTS.Instance.Invalidate("Domain", config.GetHost())
|
||||
r.state.Caches.DB.Instance.Invalidate("Domain", config.GetHost())
|
||||
|
||||
return rule, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue