Module: PhusionPassenger::ClassicRailsExtensions::AnalyticsLogging::ConcreteCacheStoreExtension

Defined in:
lib/phusion_passenger/classic_rails_extensions/analytics_logging/as_cache_extension.rb

Instance Method Summary collapse

Instance Method Details

#read(name, *args) ⇒ Object



115
116
117
118
119
120
121
122
123
124
125
# File 'lib/phusion_passenger/classic_rails_extensions/analytics_logging/as_cache_extension.rb', line 115

def read(name, *args)
	result = super
	if !@logger_off
		if result.nil?
			PhusionPassenger.log_cache_miss(nil, name)
		else
			PhusionPassenger.log_cache_hit(nil, name)
		end
	end
	result
end