diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-02-18 03:14:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-18 03:14:46 +0100 |
commit | cba2897108dffe69d5a16befe6c6220f6eaae59f (patch) | |
tree | e247261ff56fa1751e914d650a4a4710c6417dd1 /app/models/mute.rb | |
parent | 9b8a4484778fb55bcb2526992807a51270229b72 (diff) |
Cache relationships in API (#6482)
* Cache relationships in API * Fetch relationships for search results in UI * Only save one account's maps in each cache item
Diffstat (limited to 'app/models/mute.rb')
-rw-r--r-- | app/models/mute.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/mute.rb b/app/models/mute.rb index 948f22444..8efa27ac0 100644 --- a/app/models/mute.rb +++ b/app/models/mute.rb @@ -13,14 +13,14 @@ class Mute < ApplicationRecord include Paginable + include RelationshipCacheable belongs_to :account belongs_to :target_account, class_name: 'Account' validates :account_id, uniqueness: { scope: :target_account_id } - after_create :remove_blocking_cache - after_destroy :remove_blocking_cache + after_commit :remove_blocking_cache private |