1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Caching should work correctly now (fingers crossed)

This commit is contained in:
Eugen Rochko 2016-11-03 14:12:45 +01:00
parent 562044f36a
commit c003e70758
4 changed files with 3 additions and 4 deletions

View file

@ -1,5 +1,5 @@
object @account object @account
cache false
attribute :id attribute :id
node(:following) { |account| @following[account.id] || false } node(:following) { |account| @following[account.id] || false }
node(:followed_by) { |account| @followed_by[account.id] || false } node(:followed_by) { |account| @followed_by[account.id] || false }

View file

@ -1,5 +1,5 @@
object @account object @account
cache false cache
attributes :id, :username, :acct, :display_name, :note attributes :id, :username, :acct, :display_name, :note

View file

@ -1,5 +1,4 @@
object @context object @context
cache false
node :ancestors do |context| node :ancestors do |context|
partial 'api/v1/statuses/index', object: context.ancestors partial 'api/v1/statuses/index', object: context.ancestors

View file

@ -1,5 +1,5 @@
object @status object @status
cache false cache
extends 'api/v1/statuses/_show' extends 'api/v1/statuses/_show'