diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-03 13:28:36 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-03 13:28:36 +0100 |
commit | 0160d1d9b5195e5d8fcb94b29f74634b129439b4 (patch) | |
tree | 05c4978fea002d562daceb8a30305e3f701e9198 /app/views/accounts | |
parent | aff22bfdb554207ae73b8946310f7328f645be70 (diff) |
Enable caching for some rabl views
Diffstat (limited to 'app/views/accounts')
-rw-r--r-- | app/views/accounts/followers.html.haml | 2 | ||||
-rw-r--r-- | app/views/accounts/following.html.haml | 2 | ||||
-rw-r--r-- | app/views/accounts/show.html.haml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/accounts/followers.html.haml b/app/views/accounts/followers.html.haml index 5bd3d0809..7a6e270ac 100644 --- a/app/views/accounts/followers.html.haml +++ b/app/views/accounts/followers.html.haml @@ -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 diff --git a/app/views/accounts/following.html.haml b/app/views/accounts/following.html.haml index b20ee5318..95843f64d 100644 --- a/app/views/accounts/following.html.haml +++ b/app/views/accounts/following.html.haml @@ -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 diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml index 563b43849..b11a59513 100644 --- a/app/views/accounts/show.html.haml +++ b/app/views/accounts/show.html.haml @@ -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 |