mirror of
https://github.com/astaxie/beego.git
synced 2024-11-05 04:10:54 +00:00
add comment
This commit is contained in:
parent
690e91e1b6
commit
c265f6e49c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user