diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/util/cacher.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/util/cacher.rb b/lib/puppet/util/cacher.rb index 0406b12f1..af5c5ebfc 100644 --- a/lib/puppet/util/cacher.rb +++ b/lib/puppet/util/cacher.rb @@ -70,7 +70,8 @@ module Puppet::Util::Cacher end def cached_value(name) - if expirer.expired?(cache_timestamp) + # Allow a nil expirer, in which case we regenerate the value every time. + if expirer.nil? or expirer.expired?(cache_timestamp) value_cache.clear @cache_timestamp = Time.now end |
