Skip to content

Commit

Permalink
Replace outdated "expires" usages with "expires_in"
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-hank committed Jul 18, 2019
1 parent bccbfe1 commit 78bad83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/feed_items/_grid_item.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
:ruby
hub = @hub || feed_item.hubs.first
hub_feed = @hub_feed || feed_item.hub_feed_for_hub(hub.id) || feed_item.hub_feeds.first
- cache("feed-item-tag-list-#{hub.id}-#{hub_feed.id}-#{feed_item.id}-grid", :expires => 120.minutes ) do
- cache("feed-item-tag-list-#{hub.id}-#{hub_feed.id}-#{feed_item.id}-grid", :expires_in => 120.minutes ) do
.feed-item.grid-item.col-md-6
.grid-image{ :style => "background-image: url('#{feed_item.image_url or image_path('feed_item_placeholder.png')}');" }
.feed-item-content.equal-height
Expand Down
2 changes: 1 addition & 1 deletion app/views/hubs/statistics.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- content_for :tabs do
= render partial: 'hubs/tabs', locals: { active: 'statistics' }
- content_for :tab_content do
- cache("hub-stats-#{@hub.try(:id)}", :expires => 6.hours ) do
- cache("hub-stats-#{@hub.try(:id)}", :expires_in => 6.hours ) do
.nicely-padded.statistics
%h1 Statistics
.row
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/line_items/_feed_item.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- hub_feed = @hub_feed || feed_item.hub_feed_for_hub(hub.id) || feed_item.hub_feeds.first
%tr.feed_item{:id => "feed_item_#{feed_item.id}"}
%td
- cache("feed-item-tag-list-#{hub.id}-#{hub_feed.id}-#{feed_item.id}", :expires => 120.minutes ) do
- cache("feed-item-tag-list-#{hub.id}-#{hub_feed.id}-#{feed_item.id}", :expires_in => 120.minutes ) do
.feed_item_title
= link_to(raw(strip_tags(feed_item.title)), hub_feed_feed_item_path(hub_feed,feed_item))
%a{:name => feed_item.id}
Expand Down

0 comments on commit 78bad83

Please sign in to comment.