Auto-refresh content

This commit is contained in:
Michael Snoyman 2015-04-01 08:02:56 +03:00
parent dd375bbbc1
commit 30b6d57f5c

View File

@ -170,6 +170,12 @@ makeFoundation useEcho conf = do
"master"
loadWebsiteContent
-- Temporary workaround to force content updates regularly, until
-- distribution of webhooks is handled via consul
void $ forkIO $ forever $ void $ tryAny $ do
threadDelay $ 1000 * 1000 * 60 * 20
grRefresh websiteContent'
env <- getEnvironment
let runDB' :: (MonadIO m, MonadBaseControl IO m) => SqlPersistT m a -> m a