Ind.ie is now Small Technology Foundation.
Commit 4a7c174f authored by Aral Balkan's avatar Aral Balkan

Revert previous quick-fix that disabled content cache

parent f7bfc2d9
......@@ -133,10 +133,6 @@ class Blockdown
#
setupCache: =>
#
# Note: I do not trust the cache for use in production so we detect that and turn it off.
# ===== A production deployment should always do a full, clean build.
#
cacheDirectory = path.join app.homeDirectory, '.private', 'cache'
themeCacheCurrentModifiedTimesFile = path.join cacheDirectory, 'current-modified-times', 'themes.json'
themeCachePreviousModifiedTimesFile = path.join cacheDirectory, 'previous-modified-times', 'themes.json'
......@@ -145,8 +141,8 @@ class Blockdown
themeCachePreviousModifiedTimes = fs.readJsonSync themeCachePreviousModifiedTimesFile, 'utf-8'
# Check if there are any template changes (if there are, this will require a full rebuild),
# otherwise, we can use the cache and we won’t need to re-render the content.
@useContentCache = false # TODO: FIX
# otherwise, we can use the cache and we won’t need to re-render the content.
@useContentCache = true
for fileName, lastModifiedDate of themeCachePreviousModifiedTimes
if (fileName.indexOf '/templates/') != -1
# This is a template, check if it has changed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment