mirror of
https://github.com/alist-org/alist.git
synced 2026-06-14 21:08:23 +08:00
15 lines
253 B
Go
15 lines
253 B
Go
package server
|
|
|
|
import (
|
|
"github.com/Xhofe/alist/conf"
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func ClearCache(ctx *fiber.Ctx) error {
|
|
err := conf.Cache.Clear(conf.Ctx)
|
|
if err != nil {
|
|
return ErrorResp(ctx,err,500)
|
|
}else {
|
|
return SuccessResp(ctx)
|
|
}
|
|
} |