mirror of
https://codeberg.org/aryak/mozhi
synced 2024-12-22 19:19:45 +05:30
remove cache
This commit is contained in:
parent
5ceee0a942
commit
9e3f25731a
@ -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 New Issue
Block a user