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