vendored/puppet/lib/puppet/environments.rb in bolt-0.10.0 vs vendored/puppet/lib/puppet/environments.rb in bolt-0.11.0

- old
+ new

@@ -380,18 +380,20 @@ # Clears the cache of the environment with the given name. # (The intention is that this could be used from a MANUAL cache eviction command (TBD) def clear(name) @cache.delete(name) + Puppet::GettextConfig.delete_text_domain(name) end # Clears all cached environments. # (The intention is that this could be used from a MANUAL cache eviction command (TBD) def clear_all() super @cache = {} @expirations.clear @next_expiration = END_OF_TIME + Puppet::GettextConfig.delete_environment_text_domains end # Clears all environments that have expired, either by exceeding their time to live, or # through an explicit eviction determined by the cache expiration service. #