debian-mirror-gitlab/lib/gitlab/markdown_cache.rb

21 lines
765 B
Ruby
Raw Normal View History

2019-09-04 21:01:54 +05:30
# frozen_string_literal: true
module Gitlab
module MarkdownCache
2021-10-27 15:23:28 +05:30
# Increment this number to invalidate cached HTML from Markdown documents.
# Even when reverting an MR, we should increment this because we only
# persist the cache when the new version is higher.
#
2021-06-08 01:23:25 +05:30
# Changing this value puts strain on the database, as every row with
2021-10-27 15:23:28 +05:30
# cached markdown needs to be updated. As a result, avoid changing
# this if the change to the renderer output is a new feature or a
# minor bug fix.
2021-06-08 01:23:25 +05:30
# See: https://gitlab.com/gitlab-org/gitlab/-/issues/330313
2021-09-04 01:27:46 +05:30
CACHE_COMMONMARK_VERSION = 29
2019-09-04 21:01:54 +05:30
CACHE_COMMONMARK_VERSION_START = 10
BaseError = Class.new(StandardError)
UnsupportedClassError = Class.new(BaseError)
end
end