GitLab steht Mittwoch, den 08. Juli, zwischen 09:00 und 13:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit d337d5e7 authored by Douwe Maan's avatar Douwe Maan

Temporarily disable Markdown caching

parent d60047bb
module Banzai
module Renderer
# Convert a Markdown String into an HTML-safe String of HTML
# Note that while the returned HTML will have been sanitized of dangerous
......@@ -18,7 +20,7 @@ module Banzai
cache_key = context.delete(:cache_key)
cache_key = full_cache_key(cache_key, context[:pipeline])
if cache_key
if cache_key && CACHE_ENABLED
Rails.cache.fetch(cache_key) do
cacheless_render(text, context)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment