GitLab wurde erfolgreich aktualisiert. Durch regelmäßige Updates bleibt das THM GitLab sicher. Danke für Ihre Geduld.

Commit d89216ee authored by Douwe Maan's avatar Douwe Maan

Merge branch 'disable-markdown-cache' into 'master'

Temporarily disable Markdown caching

See merge request !2120
parents 3321f694 d337d5e7
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 @@ def self.render(text, context = {})
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
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