Skip to content

Commit 18cb850

Browse files
authored
Separate YARD cache from doc map cache (#938)
1 parent 5b88684 commit 18cb850

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/solargraph/yardoc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def cached?(gemspec)
3535
# @param gemspec [Gem::Specification]
3636
# @return [String]
3737
def path_for(gemspec)
38-
File.join(Solargraph::Cache.work_dir, 'gems', "#{gemspec.name}-#{gemspec.version}.yardoc")
38+
File.join(Solargraph::Cache.base_dir, "yard-#{YARD::VERSION}", "#{gemspec.name}-#{gemspec.version}.yardoc")
3939
end
4040

4141
# Load a gem's yardoc and return its code objects.

0 commit comments

Comments
 (0)