Increase cache timeout for neighborhood data

This commit is contained in:
Max Wofford 2025-05-06 11:49:43 -04:00
parent c570b836c6
commit 0fa7394162

View file

@ -4,7 +4,7 @@ class SlackNeighborhood
key = "slack_neighborhood_#{id}"
specific_neighborhood = Rails.cache.fetch(key, expires_in: 10.days) do
neighborhood_data = Rails.cache.fetch("slack_neighborhood_list", expires_in: 10.hours) do
neighborhood_data = Rails.cache.fetch("slack_neighborhood_list", expires_in: 3.days) do
response = HTTP.get("https://skksk8sos4g4c0kw4cw0ks80.a.selfhosted.hackclub.com/personal")
JSON.parse(response.body)
end