Refactor FileCache, allow disabling Trasncoding cache

This commit is contained in:
Deluan
2020-07-24 12:42:11 -04:00
parent b795ad55a3
commit 433e31acc8
5 changed files with 191 additions and 92 deletions
+1 -1
View File
@@ -202,5 +202,5 @@ func readFromFile(path string) ([]byte, error) {
}
func NewImageCache() (ImageCache, error) {
return newFileCache("Image", conf.Server.ImageCacheSize, consts.ImageCacheDir, consts.DefaultImageCacheMaxItems)
return newFSCache("Image", conf.Server.ImageCacheSize, consts.ImageCacheDir, consts.DefaultImageCacheMaxItems)
}