Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cache empty github repos with one days.

  • Loading branch information...
commit 589750d5bb2df528196f50a8cf2f20a99bccdbfa 1 parent 34817b6
@huacnlee authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/models/user.rb
View
2  app/models/user.rb
@@ -242,7 +242,7 @@ def github_repositories
rescue => e
Rails.logger.error("Github Repositiory fetch Error: #{e}")
items = []
- Rails.cache.write(cache_key, items, :expires_in => 1.minutes)
+ Rails.cache.write(cache_key, items, :expires_in => 1.days)
end
end
items
Please sign in to comment.
Something went wrong with that request. Please try again.