remove cache
This commit is contained in:
parent
5ceee0a942
commit
9e3f25731a
1 changed files with 0 additions and 5 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue