# File lib/puppet/indirector/indirection.rb, line 211 211: def find_in_cache(request) 212: # See if our instance is in the cache and up to date. 213: return nil unless cache? and ! request.ignore_cache? and cached = cache.find(request) 214: if cached.expired? 215: Puppet.info "Not using expired %s for %s from cache; expired at %s" % [self.name, request.key, cached.expiration] 216: return nil 217: end 218: 219: Puppet.debug "Using cached %s for %s" % [self.name, request.key] 220: return cached 221: end