Commit cf19efec authored by Douwe Maan's avatar Douwe Maan

Revert "Temporarily disable Markdown caching"

This reverts commit d337d5e7.
parent b9ed3961
module Banzai
module Renderer
CACHE_ENABLED = false
# Convert a Markdown String into an HTML-safe String of HTML
#
# Note that while the returned HTML will have been sanitized of dangerous
......@@ -20,7 +18,7 @@ module Banzai
cache_key = context.delete(:cache_key)
cache_key = full_cache_key(cache_key, context[:pipeline])
if cache_key && CACHE_ENABLED
if cache_key
Rails.cache.fetch(cache_key) do
cacheless_render(text, context)
end
......
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