refactor(tazblog): Directly instantiate Resolver when launching
Caching behaviour is tied to the resolver.
This commit is contained in:
parent
bf2efeba2d
commit
008be5c2e1
2 changed files with 25 additions and 7 deletions
|
|
@ -29,8 +29,8 @@ tmpPolicy = defaultBodyPolicy "/tmp" 0 200000 1000
|
|||
|
||||
runBlog :: Int -> String -> IO ()
|
||||
runBlog port respath = do
|
||||
cache <- newCache "blog.tazj.in."
|
||||
simpleHTTP nullConf {port = port} $ tazBlog cache respath
|
||||
withCache "blog.tazj.in." $ \cache ->
|
||||
simpleHTTP nullConf {port = port} $ tazBlog cache respath
|
||||
|
||||
tazBlog :: BlogCache -> String -> ServerPart Response
|
||||
tazBlog cache resDir = do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue