lib/nanoc/base/repos/compiled_content_cache.rb in nanoc-4.3.4 vs lib/nanoc/base/repos/compiled_content_cache.rb in nanoc-4.3.5

- old
+ new

@@ -2,11 +2,11 @@ # Represents a cache than can be used to store already compiled content, # to prevent it from being needlessly recompiled. # # @api private class CompiledContentCache < ::Nanoc::Int::Store - def initialize - super('tmp/compiled_content', 2) + def initialize(env_name: nil) + super(Nanoc::Int::Store.tmp_path_for(env_name: env_name, store_name: 'compiled_content'), 2) @cache = {} end # Returns the cached compiled content for the given item