Skip to content

Commit

Permalink
Missed a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanHouston committed Aug 7, 2020
1 parent fb72b00 commit 0c15201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fetch_book_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ class FetchBookData
CACHE_DURATION = 1.day

def titles
# @titles ||= Rails.cache.fetch('BookData.titles', expires_in: CACHE_DURATION) do
@titles ||= Rails.cache.fetch('BookData.titles', expires_in: CACHE_DURATION) do
fetch_titles
# end
end
end

def fetch_titles
Expand Down

0 comments on commit 0c15201

Please sign in to comment.