Update scaffold to use newer date cache code

This commit is contained in:
Michael Snoyman 2012-12-26 19:04:45 +02:00
parent bf293e6a1f
commit 980f925317
5 changed files with 20 additions and 10 deletions

View File

@ -139,7 +139,9 @@ instance Yesod App where
-- default session idle timeout is 120 minutes
makeSessionBackend _ = do
key <- getKey "config/client_session_key.aes"
return . Just $ clientSessionBackend key 120
let timeout = 120 * 60 -- 120 minutes
(getCachedDate, _closeDateCache) <- clientSessionDateCacher timeout
return . Just $ clientSessionBackend2 key getCachedDate
defaultLayout widget = do
master <- getYesod
@ -370,7 +372,7 @@ library
build-depends: base >= 4 && < 5
-- , yesod-platform >= 1.1 && < 1.2
, yesod >= 1.1.5 && < 1.2
, yesod-core >= 1.1.5 && < 1.2
, yesod-core >= 1.1.7 && < 1.2
, yesod-auth >= 1.1 && < 1.2
, yesod-static >= 1.1 && < 1.2
, yesod-default >= 1.1 && < 1.2

View File

@ -141,7 +141,9 @@ instance Yesod App where
-- default session idle timeout is 120 minutes
makeSessionBackend _ = do
key <- getKey "config/client_session_key.aes"
return . Just $ clientSessionBackend key 120
let timeout = 120 * 60 -- 120 minutes
(getCachedDate, _closeDateCache) <- clientSessionDateCacher timeout
return . Just $ clientSessionBackend2 key getCachedDate
defaultLayout widget = do
master <- getYesod
@ -368,7 +370,7 @@ library
build-depends: base >= 4 && < 5
-- , yesod-platform >= 1.1 && < 1.2
, yesod >= 1.1.5 && < 1.2
, yesod-core >= 1.1.5 && < 1.2
, yesod-core >= 1.1.7 && < 1.2
, yesod-auth >= 1.1 && < 1.2
, yesod-static >= 1.1 && < 1.2
, yesod-default >= 1.1 && < 1.2

View File

@ -141,7 +141,9 @@ instance Yesod App where
-- default session idle timeout is 120 minutes
makeSessionBackend _ = do
key <- getKey "config/client_session_key.aes"
return . Just $ clientSessionBackend key 120
let timeout = 120 * 60 -- 120 minutes
(getCachedDate, _closeDateCache) <- clientSessionDateCacher timeout
return . Just $ clientSessionBackend2 key getCachedDate
defaultLayout widget = do
master <- getYesod
@ -368,7 +370,7 @@ library
build-depends: base >= 4 && < 5
-- , yesod-platform >= 1.1 && < 1.2
, yesod >= 1.1.5 && < 1.2
, yesod-core >= 1.1.5 && < 1.2
, yesod-core >= 1.1.7 && < 1.2
, yesod-auth >= 1.1 && < 1.2
, yesod-static >= 1.1 && < 1.2
, yesod-default >= 1.1 && < 1.2

View File

@ -124,7 +124,9 @@ instance Yesod App where
-- default session idle timeout is 120 minutes
makeSessionBackend _ = do
key <- getKey "config/client_session_key.aes"
return . Just $ clientSessionBackend key 120
let timeout = 120 * 60 -- 120 minutes
(getCachedDate, _closeDateCache) <- clientSessionDateCacher timeout
return . Just $ clientSessionBackend2 key getCachedDate
defaultLayout widget = do
master <- getYesod
@ -300,7 +302,7 @@ library
build-depends: base >= 4 && < 5
-- , yesod-platform >= 1.1 && < 1.2
, yesod >= 1.1.5 && < 1.2
, yesod-core >= 1.1.5 && < 1.2
, yesod-core >= 1.1.7 && < 1.2
, yesod-static >= 1.1 && < 1.2
, yesod-default >= 1.1 && < 1.2
, yesod-form >= 1.1 && < 1.3

View File

@ -141,7 +141,9 @@ instance Yesod App where
-- default session idle timeout is 120 minutes
makeSessionBackend _ = do
key <- getKey "config/client_session_key.aes"
return . Just $ clientSessionBackend key 120
let timeout = 120 * 60 -- 120 minutes
(getCachedDate, _closeDateCache) <- clientSessionDateCacher timeout
return . Just $ clientSessionBackend2 key getCachedDate
defaultLayout widget = do
master <- getYesod
@ -368,7 +370,7 @@ library
build-depends: base >= 4 && < 5
-- , yesod-platform >= 1.1 && < 1.2
, yesod >= 1.1.5 && < 1.2
, yesod-core >= 1.1.5 && < 1.2
, yesod-core >= 1.1.7 && < 1.2
, yesod-auth >= 1.1 && < 1.2
, yesod-static >= 1.1 && < 1.2
, yesod-default >= 1.1 && < 1.2