Verified Commit f4dc8533 authored by Aral Balkan's avatar Aral Balkan
Browse files

Remove content not cached check

parent 5ed00aa0
...@@ -150,7 +150,7 @@ class Blockdown ...@@ -150,7 +150,7 @@ class Blockdown
if (fileName.indexOf '/templates/') != -1 if (fileName.indexOf '/templates/') != -1
# This is a template, check if it has changed # This is a template, check if it has changed
if lastModifiedDate != themeCacheCurrentModifiedTimes[fileName] if lastModifiedDate != themeCacheCurrentModifiedTimes[fileName]
# There are changes to a theme template, do not use the cache. # There are changes to a theme template, do not use the cache.
@log.info "\t✓ Theme template changed (#{fileName}), *not* using cache." @log.info "\t✓ Theme template changed (#{fileName}), *not* using cache."
@useContentCache = false @useContentCache = false
break break
...@@ -703,9 +703,9 @@ Better is a Safari content blocker for <a href='https://itunes.apple.com/us/app/ ...@@ -703,9 +703,9 @@ Better is a Safari content blocker for <a href='https://itunes.apple.com/us/app/
# #
saveBlockerListJSON: (dataDirectory) => saveBlockerListJSON: (dataDirectory) =>
if @contentHasNotChanged # if @contentHasNotChanged
console.log("\t✓ Content has not changed. Not saving blocker list JSON or its metadata file.") # console.log("\t✓ Content has not changed. Not saving blocker list JSON or its metadata file.")
return Promise.resolve() # return Promise.resolve()
# #
# Content has changed. Save the blocker list and metadata files. # Content has changed. Save the blocker list and metadata files.
......
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