🐛 Fix cache issue

This commit is contained in:
2024-12-29 01:03:22 +08:00
parent b041ce3e06
commit e89f149336
6 changed files with 28 additions and 14 deletions

View File

@@ -86,7 +86,6 @@ func ReUploadFile(meta models.Attachment, dst int) error {
}
database.C.Save(&meta)
CacheAttachment(meta)
cleanupDst()
return nil
case models.DestinationTypeS3:
@@ -111,7 +110,6 @@ func ReUploadFile(meta models.Attachment, dst int) error {
}
database.C.Save(&meta)
CacheAttachment(meta)
cleanupDst()
return nil
default: