2019-06-05 00:59:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module MarkdownCache
|
2021-05-12 08:10:24 -04:00
|
|
|
# Increment this number every time the renderer changes its output.
|
|
|
|
# Changing this value puts strain on the database, as every row with
|
|
|
|
# cached markdown needs to be updated. As a result, this line should
|
|
|
|
# not be changed.
|
|
|
|
# See: https://gitlab.com/gitlab-org/gitlab/-/issues/330313
|
2021-05-04 23:10:18 -04:00
|
|
|
CACHE_COMMONMARK_VERSION = 28
|
2019-06-05 00:59:48 -04:00
|
|
|
CACHE_COMMONMARK_VERSION_START = 10
|
|
|
|
|
|
|
|
BaseError = Class.new(StandardError)
|
|
|
|
UnsupportedClassError = Class.new(BaseError)
|
|
|
|
end
|
|
|
|
end
|