Add cache directives

This commit is contained in:
Stanko K.R.
2025-12-09 17:26:22 +01:00
parent 462470ed1d
commit cbbddf9ffe
3 changed files with 13 additions and 7 deletions
@@ -1,5 +1,7 @@
json.(reaction, :id, :content)
json.reacter do
json.partial! "users/user", user: reaction.reacter
json.cache! reaction do
json.(reaction, :id, :content)
json.reacter do
json.partial! "users/user", user: reaction.reacter
end
json.url card_comment_reaction_url(reaction.comment.card, reaction.comment, reaction)
end
json.url card_comment_reaction_url(reaction.comment.card, reaction.comment, reaction)
+3 -1
View File
@@ -1 +1,3 @@
json.(step, :id, :content, :completed)
json.cache! step do
json.(step, :id, :content, :completed)
end
+4 -2
View File
@@ -1,2 +1,4 @@
json.(column, :id, :name, :color)
json.created_at column.created_at.utc
json.cache! column do
json.(column, :id, :name, :color)
json.created_at column.created_at.utc
end