Replace cache with single int64

This commit is contained in:
Dane Everitt
2020-08-22 22:50:49 -07:00
parent 138080d5e2
commit c73a53dbe3
3 changed files with 12 additions and 15 deletions

View File

@@ -4,7 +4,6 @@ import (
"context"
"fmt"
"github.com/apex/log"
"github.com/patrickmn/go-cache"
"github.com/pkg/errors"
"github.com/pterodactyl/wings/api"
"github.com/pterodactyl/wings/environment"
@@ -37,10 +36,6 @@ type Server struct {
Environment environment.ProcessEnvironment `json:"-"`
Filesystem Filesystem `json:"-"`
// Server cache used to store frequently requested information in memory and make
// certain long operations return faster. For example, FS disk space usage.
cache *cache.Cache
// Events emitted by the server instance.
emitter *events.EventBus