mirror of
https://github.com/astaxie/beego.git
synced 2025-06-23 05:50:18 +00:00
add comment
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user