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
|
2022-07-23 23:45:48 +05:30
|
|
|
CACHE_COMMONMARK_VERSION = 31
|
2022-05-03 16:02:30 +05:30
|
|
|
CACHE_COMMONMARK_VERSION_START = 10
|
2019-09-04 21:01:54 +05:30
|
|
|
|
|
|
|
BaseError = Class.new(StandardError)
|
|
|
|
UnsupportedClassError = Class.new(BaseError)
|
|
|
|
end
|
|
|
|
end
|