diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-03 18:10:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-03 18:10:03 +0300 |
commit | f397d486bc77b286d42f83b89e0879428c05299d (patch) | |
tree | 8cabde42b9c8431ca8cdb5a21ae9f3102fe94f27 /lib/gitlab/markdown_cache | |
parent | 6b3944a90167998424f6f258dcffcd4ec740ef03 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/markdown_cache')
-rw-r--r-- | lib/gitlab/markdown_cache/active_record/extension.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/markdown_cache/active_record/extension.rb b/lib/gitlab/markdown_cache/active_record/extension.rb index af94884f1a7..f73631c9599 100644 --- a/lib/gitlab/markdown_cache/active_record/extension.rb +++ b/lib/gitlab/markdown_cache/active_record/extension.rb @@ -39,6 +39,7 @@ module Gitlab def save_markdown(updates) return unless persisted? && Gitlab::Database.read_write? + return if cached_markdown_version < cached_markdown_version_in_database update_columns(updates) end |