summaryrefslogtreecommitdiff
path: root/lib/gitlab/markdown_cache.rb
blob: d0702190ac0dbbc6cdf1623254a5f522b4f7996b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Gitlab
  module MarkdownCache
    # 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
    CACHE_COMMONMARK_VERSION        = 28
    CACHE_COMMONMARK_VERSION_START  = 10

    BaseError = Class.new(StandardError)
    UnsupportedClassError = Class.new(BaseError)
  end
end