We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1a2f01 commit a33b3e8Copy full SHA for a33b3e8
2 files changed
app/controllers/home_controller.rb
@@ -32,7 +32,7 @@ def find_next_match
32
33
def find_recent_matches(limit)
34
@schedule.select { |m| m["Winner"].present? }
35
- .last(limit)
+ .first(limit)
36
end
37
38
def detect_phase(schedule)
lib/tasks/leaguepedia.rake
@@ -106,6 +106,9 @@ namespace :leaguepedia do
106
puts "devdocs/import_data.json not found — skipping stats import."
107
108
109
+ # ── 4. Clear MemoryStore so first web request gets fresh DB data ──
110
+ Rails.cache.clear rescue nil
111
+
112
puts "Bootstrap complete."
113
114
0 commit comments