feat: cache canned responses in the browser (#15401)

This commit is contained in:
Sivin Varghese
2026-08-13 11:54:32 +05:30
committed by GitHub
parent 590e17dfb7
commit 2ed68cf207
14 changed files with 356 additions and 63 deletions

View File

@@ -11,6 +11,8 @@
#
class CannedResponse < ApplicationRecord
include AccountCacheRevalidator
validates :content, presence: true
validates :short_code, presence: true
validates :account, presence: true

View File

@@ -8,7 +8,7 @@ module CacheKeys
included do
class_attribute :cacheable_models
self.cacheable_models = [Label, Inbox, Team]
self.cacheable_models = [Label, Inbox, Team, CannedResponse]
end
def cache_keys