mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 08:00:57 +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) {
|
func openFile(filePath string, fi os.FileInfo, acceptEncoding string) (bool, string, *serveContentHolder, *serveContentReader, error) {
|
||||||
if staticFileLruCache == nil {
|
if staticFileLruCache == nil {
|
||||||
|
//avoid lru cache error
|
||||||
if BConfig.WebConfig.StaticCacheFileNum >= 1 {
|
if BConfig.WebConfig.StaticCacheFileNum >= 1 {
|
||||||
staticFileLruCache, _ = lru.New(BConfig.WebConfig.StaticCacheFileNum)
|
staticFileLruCache, _ = lru.New(BConfig.WebConfig.StaticCacheFileNum)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user