diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 12:08:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 12:08:42 +0300 |
commit | b76ae638462ab0f673e5915986070518dd3f9ad3 (patch) | |
tree | bdab0533383b52873be0ec0eb4d3c66598ff8b91 /lib/gitlab/markdown_cache.rb | |
parent | 434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff) |
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
Diffstat (limited to 'lib/gitlab/markdown_cache.rb')
-rw-r--r-- | lib/gitlab/markdown_cache.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/gitlab/markdown_cache.rb b/lib/gitlab/markdown_cache.rb index d0702190ac0..db39904ea23 100644 --- a/lib/gitlab/markdown_cache.rb +++ b/lib/gitlab/markdown_cache.rb @@ -2,10 +2,14 @@ module Gitlab module MarkdownCache - # Increment this number every time the renderer changes its output. + # 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. + # # 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. + # 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. # See: https://gitlab.com/gitlab-org/gitlab/-/issues/330313 CACHE_COMMONMARK_VERSION = 28 CACHE_COMMONMARK_VERSION_START = 10 |