remove cache

This commit is contained in:
Arya Kiran 2023-07-05 20:57:25 +05:30
parent 5ceee0a942
commit 9e3f25731a
No known key found for this signature in database
GPG key ID: 842D12BDA50DF120

View file

@ -6,13 +6,11 @@ import (
"os"
"runtime"
"strings"
"time"
"codeberg.org/aryak/simplytranslate/pages"
"codeberg.org/aryak/simplytranslate/utils"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/cache"
"github.com/gofiber/fiber/v2/middleware/compress"
//"github.com/gofiber/fiber/v2/middleware/limiter"
// For debugging purposes
@ -61,9 +59,6 @@ func Serve(port string) {
},
})
app.Use(cache.New(cache.Config{
Expiration: 5 * time.Minute,
}))
// For debugging purposes
// app.Use(logger.New(logger.Config{
// Format: "[${ip}]:${port} ${status} - ${method} ${path} ${queryParams}\n",