mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-12-16 06:25:31 +00:00
KeyGenerator f Cache
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
cache/
|
cache/
|
||||||
_cache/
|
_cache/
|
||||||
tmp/
|
tmp/
|
||||||
|
lenz-web
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ func New(engine *templating.Engine, storage fiber.Storage, debug bool) Server {
|
|||||||
Expiration: CACHE_TIME,
|
Expiration: CACHE_TIME,
|
||||||
CacheControl: true,
|
CacheControl: true,
|
||||||
Storage: storage,
|
Storage: storage,
|
||||||
|
KeyGenerator: KeyGenerator,
|
||||||
}))
|
}))
|
||||||
server.Use(recover.New())
|
server.Use(recover.New())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user