add comment

This commit is contained in:
jianzhiyao 2020-06-02 20:02:58 +08:00
parent 690e91e1b6
commit c265f6e49c
1 changed files with 1 additions and 0 deletions

View File

@ -112,6 +112,7 @@ var (
func openFile(filePath string, fi os.FileInfo, acceptEncoding string) (bool, string, *serveContentHolder, *serveContentReader, error) {
if staticFileLruCache == nil {
//avoid lru cache error
if BConfig.WebConfig.StaticCacheFileNum >= 1 {
staticFileLruCache, _ = lru.New(BConfig.WebConfig.StaticCacheFileNum)
} else {