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/File.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/File.hs')
-rw-r--r-- | src/Text/Hakyll/File.hs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/Text/Hakyll/File.hs b/src/Text/Hakyll/File.hs index 1becb46..af40500 100644 --- a/src/Text/Hakyll/File.hs +++ b/src/Text/Hakyll/File.hs @@ -2,7 +2,6 @@ -- files and directories. module Text.Hakyll.File ( toDestination - , toCache , toURL , toRoot , removeSpaces @@ -36,10 +35,6 @@ removeLeadingSeparator path toDestination :: FilePath -> FilePath toDestination path = "_site" </> removeLeadingSeparator path --- | Convert a relative filepath to a filepath in the cache (@_cache@). -toCache :: FilePath -> FilePath -toCache path = "_cache" </> removeLeadingSeparator path - -- | Get the url for a given page. toURL :: FilePath -> FilePath toURL path = if takeExtension path `elem` [ ".markdown" |