]> cat aescling's git repositories - mastodon.git/commitdiff
Caching should work correctly now (fingers crossed)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 3 Nov 2016 13:12:45 +0000 (14:12 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 3 Nov 2016 13:12:45 +0000 (14:12 +0100)
app/views/api/v1/accounts/relationship.rabl
app/views/api/v1/accounts/show.rabl
app/views/api/v1/statuses/context.rabl
app/views/api/v1/statuses/show.rabl

index 4f634877f737a9d06edcc56c220f3d36e2192487..84043e9cd35a4a2f9d6a53205bf1bd20cc2d137e 100644 (file)
@@ -1,5 +1,5 @@
 object @account
-cache false
+
 attribute :id
 node(:following)   { |account| @following[account.id]   || false }
 node(:followed_by) { |account| @followed_by[account.id] || false }
index 6aec6e14deaa6d8977c93818e743df43ad991a65..b7b4d2640089116db64770c4520fb06673069cda 100644 (file)
@@ -1,5 +1,5 @@
 object @account
-cache false
+cache
 
 attributes :id, :username, :acct, :display_name, :note
 
index 24fa403948428dc1ffef315a84a584fc34ce03b7..0b62f26d5520681399b2da8037fa14a8e05bcb15 100644 (file)
@@ -1,5 +1,4 @@
 object @context
-cache false
 
 node :ancestors do |context|
   partial 'api/v1/statuses/index', object: context.ancestors
index 24493bc3eba272965c35c2e9112c81d0af8f57b5..1c586a3a5a28bf7d8941ce823ddfa771f9858223 100644 (file)
@@ -1,5 +1,5 @@
 object @status
-cache false
+cache
 
 extends 'api/v1/statuses/_show'