优化WebP+缓存

This commit is contained in:
GoEdgeLab
2021-10-03 18:00:57 +08:00
parent a1ff7b09d1
commit e7e8d72bf5
4 changed files with 42 additions and 12 deletions

View File

@@ -188,7 +188,7 @@ func (this *FileList) Exist(hash string) (bool, error) {
var expiredAt int64
err = rows.Scan(&expiredAt)
if err != nil {
return true, nil
return false, nil
}
this.memoryCache.Write(hash, 1, expiredAt)
return true, nil