mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-30 11:33:31 -06:00
remove unused cache fields
This commit is contained in:
parent
1bfc1aa7d1
commit
6143bb9879
1 changed files with 0 additions and 8 deletions
8
internal/cache/db.go
vendored
8
internal/cache/db.go
vendored
|
|
@ -304,18 +304,10 @@ func (c *Caches) initAccount() {
|
|||
|
||||
c.DB.Account.Init(structr.CacheConfig[*gtsmodel.Account]{
|
||||
Indices: []structr.IndexConfig{
|
||||
// Unique fields.
|
||||
{Fields: "ID"},
|
||||
{Fields: "URI"},
|
||||
{Fields: "PublicKeyURI"},
|
||||
{Fields: "Username,Domain", AllowZero: true},
|
||||
|
||||
// Potentially non-unique fields.
|
||||
{Fields: "URL", Multiple: true},
|
||||
{Fields: "InboxURI", Multiple: true},
|
||||
{Fields: "OutboxURI", Multiple: true},
|
||||
{Fields: "FollowersURI", Multiple: true},
|
||||
{Fields: "FollowingURI", Multiple: true},
|
||||
},
|
||||
MaxSize: cap,
|
||||
IgnoreErr: ignoreErrors,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue