diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-19 16:34:41 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-19 16:34:41 +0100 |
commit | 68facf83ec0c223b9c033cc632041d45732ab0e7 (patch) | |
tree | 8a04a6a5ae5f7fd52537c062deecfaf7d6aaa59d /src/Text/Hakyll.hs | |
parent | fe77089955dbf1002496e34824da13bfaf64a898 (diff) | |
download | hakyll-68facf83ec0c223b9c033cc632041d45732ab0e7.tar.gz |
Removed page caching.
I am removing page caching for the following reasons (in no particular order):
- It is very error-prone because the pandoc output might interfere with the
Hakyll page layout (and thus would pages be read incorrectly).
- Timestamping is a much better method to save compilation time.
- It would also mess up Unicode sometimes.
- Hakyll is aimed at small to medium sites. This caching would not bring a huge
speedup anyway.
Note: there still is timestamp checking!
Diffstat (limited to 'src/Text/Hakyll.hs')
-rw-r--r-- | src/Text/Hakyll.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Text/Hakyll.hs b/src/Text/Hakyll.hs index 295f32e..5c2fbd5 100644 --- a/src/Text/Hakyll.hs +++ b/src/Text/Hakyll.hs @@ -39,8 +39,7 @@ build configuration buildFunction = do putStrLn "Generating..." -- | Clean up directories. clean :: IO () -clean = do remove' "_cache" - remove' "_site" +clean = remove' "_site" where remove' dir = do putStrLn $ "Removing " ++ dir ++ "..." exists <- doesDirectoryExist dir |