Skip to content

Commit

Permalink
refactor: remove bad caching
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Nov 28, 2024
1 parent aa10071 commit b6fd29c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/avo/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def svg(file_name, **args)

file_name = "#{file_name}.svg" unless file_name.end_with? ".svg"

Avo::CACHED_SVGS[file_name] ||= with_asset_finder(::Avo::SvgFinder) do
with_asset_finder(::Avo::SvgFinder) do
inline_svg file_name, **args
end
end
Expand Down
1 change: 0 additions & 1 deletion lib/avo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ module Avo
COOKIES_KEY = "avo"
MODAL_FRAME_ID = :modal_frame
ACTIONS_BACKGROUND_FRAME = :actions_background
CACHED_SVGS = {}

class LicenseVerificationTemperedError < StandardError; end

Expand Down

0 comments on commit b6fd29c

Please sign in to comment.