X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Rakka%2FStorage%2FDefaultPage.hs;h=06b40361908ff39e1f2bf20b028d3a16fa0e8fe6;hb=bf15724655b75bf1b8f0fdabb111c158a91680a8;hp=2cc02c3549b29d1b925068ad883d95f2fddc94f7;hpb=9681bedbfde02fa1bcda4fbbacba941378c7a57a;p=Rakka.git diff --git a/Rakka/Storage/DefaultPage.hs b/Rakka/Storage/DefaultPage.hs index 2cc02c3..06b4036 100644 --- a/Rakka/Storage/DefaultPage.hs +++ b/Rakka/Storage/DefaultPage.hs @@ -88,15 +88,13 @@ loadPageFileA -< fpath page <- parseXmlizedPage -< (name, tree) - case page of - Redirection _ _ _ _ - -> returnA -< page { - redirRevision = 0 - , redirLastMod = lastMod - } - - Entity _ _ _ _ _ _ _ _ _ _ _ _ _ _ - -> returnA -< page { - pageRevision = 0 - , pageLastMod = lastMod - } + if isEntity page then + returnA -< page { + entityRevision = 0 + , entityLastMod = lastMod + } + else + returnA -< page { + redirRevision = 0 + , redirLastMod = lastMod + }