Commit 83c2d05b authored by Kamil Trzciński's avatar Kamil Trzciński

Disable etag update on note save

parent 2c4d6344
......@@ -156,8 +156,8 @@ class Note < ApplicationRecord
before_validation :nullify_blank_type, :nullify_blank_line_code
before_validation :set_discussion_id, on: :create
after_save :keep_around_commit, if: :for_project_noteable?, unless: :importing?
after_save :expire_etag_cache
after_save :touch_noteable
after_save :expire_etag_cache, unless: :importing?
after_save :touch_noteable, unless: :importing?
after_destroy :expire_etag_cache
class << self
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment