Skip to content

Commit

Permalink
Revert CSS loading retry
Browse files Browse the repository at this point in the history
Since that can cause an excessive pressure on the site
  • Loading branch information
leandrocp committed Jan 3, 2025
1 parent 997b92d commit 9db90ad
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/beacon/runtime_css.ex
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,6 @@ defmodule Beacon.RuntimeCSS do

@doc false
def current_hash(site) do
case get_current_hash(site) do
nil ->
# retry once if not found
Beacon.Loader.load_runtime_css(site)
get_current_hash(site)

hash ->
hash
end
end

defp get_current_hash(site) do
case :ets.match(:beacon_assets, {{site, :css}, {:"$1", :_, :_}}) do
[[hash]] ->
hash
Expand Down

0 comments on commit 9db90ad

Please sign in to comment.