Enable caching for some rabl views
This commit is contained in:
@ -8,6 +8,6 @@
|
||||
- if @followers.empty?
|
||||
= render partial: 'nothing_here'
|
||||
- else
|
||||
= render partial: 'grid_card', collection: @followers, as: :account
|
||||
= render partial: 'grid_card', collection: @followers, as: :account, cached: true
|
||||
|
||||
= will_paginate @followers, pagination_options
|
||||
|
@ -9,6 +9,6 @@
|
||||
- if @following.empty?
|
||||
= render partial: 'nothing_here'
|
||||
- else
|
||||
= render partial: 'grid_card', collection: @following, as: :account
|
||||
= render partial: 'grid_card', collection: @following, as: :account, cached: true
|
||||
|
||||
= will_paginate @following, pagination_options
|
||||
|
@ -12,6 +12,6 @@
|
||||
= render partial: 'nothing_here'
|
||||
- else
|
||||
.activity-stream
|
||||
= render partial: 'stream_entries/status', collection: @statuses, as: :status
|
||||
= render partial: 'stream_entries/status', collection: @statuses, as: :status, cached: true
|
||||
|
||||
= will_paginate @statuses, pagination_options
|
||||
|
Reference in New Issue
Block a user