Skip to content

Commit

Permalink
fix refactored cache code not getting the ld_obj when updating the cache
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed May 27, 2024
1 parent fff5453 commit 5fd86f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
config.apikey = ENV['UT_APIKEY']
# config.apikey = 'xxxxx-xxxxx-xxxxxxxxxx'
config.links_attr = 'links'
config.cache = false
config.cache = true
end
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def update_cache(request_key, last_modified)
cache_write(last_modified_key_id(request_key), last_modified)
cache_write(request_key, stored_obj)
end
stored_obj
stored_obj.is_a?(Hash) && stored_obj.key?(:ld_obj) ? stored_obj[:ld_obj] : stored_obj
end

def cache_response(response_env, request_key)
Expand Down

0 comments on commit 5fd86f7

Please sign in to comment.