server: Add config

This commit is contained in:
Alexander Neumann
2015-05-03 18:56:20 +02:00
parent bebb08ee7e
commit d4bf5bb279
5 changed files with 55 additions and 24 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ func NewCache(s *server.Server) (*Cache, error) {
return nil, err
}
basedir := filepath.Join(cacheDir, s.ID())
basedir := filepath.Join(cacheDir, s.Config.ID)
debug.Log("Cache.New", "opened cache at %v", basedir)
return &Cache{base: basedir}, nil