Skip to content

Commit

Permalink
fixed ref-level cache
Browse files Browse the repository at this point in the history
  • Loading branch information
DanChaltiel committed Nov 10, 2024
1 parent 70890c2 commit 73232db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ai_parse.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ autoimport_parse = function(ref_list, cache_path, use_cache, pkg_name, ns,
cache_ref = cache_file[[fun_name]]
cache_ref_hash = cache_ref[["ref_hash"]]
if(length(cache_ref_hash)==0) cache_ref_hash=""
ref_hash = hash(ref)
ref_hash = hash(as.character(ref))
if(isTRUE(read_from_cache) && ref_hash==cache_ref_hash) {
rtn_ref = cache_ref[["imports"]]
} else {
Expand Down

0 comments on commit 73232db

Please sign in to comment.