Commit c2491bea authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Drop method caching

parent 74099f52
......@@ -32,11 +32,9 @@ module EE
class_methods do
def has_shared_runners_with_non_zero_public_cost?
Rails.cache.fetch(:shared_runners_public_cost_factor, expires_in: 1.hour) do
::Ci::Runner.instance_type.where('public_projects_minutes_cost_factor > 0').exists?
end
end
end
end
end
end
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