Commit 9bd415e4 authored by Fabio Pelosin's avatar Fabio Pelosin

[pod-list] increased github cache validity to 24h

parent cf3bcecb
...@@ -56,7 +56,7 @@ module Pod ...@@ -56,7 +56,7 @@ module Pod
end end
def compute_github_stats_if_needed(set) def compute_github_stats_if_needed(set)
if @cache[set.name] && @cache[set.name][:github_check_date] && @cache[set.name][:github_check_date] > Time.now - 60 * 60 if @cache[set.name] && @cache[set.name][:github_check_date] && @cache[set.name][:github_check_date] > Time.now - 60 * 60 * 24
return return
end end
spec = set.specification.part_of_other_pod? ? set.specification.part_of_specification : set.specification spec = set.specification.part_of_other_pod? ? set.specification.part_of_specification : set.specification
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment