public
Description: Merb More: The Full Stack. Take what you need; leave what you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-more.git
less noise for cache hits, only get them in debug mode
atmos (author)
Tue Jul 08 18:50:51 -0700 2008
commit  d5880bd8ce38ef8f9b33f4370ce088f34baf678d
tree    30464fb80480aee8611e41c1c3143a76654eaf37
parent  28c3079e9d08adf41a040b1f7cea045441ef7809
...
97
98
99
100
 
 
 
 
 
101
102
103
...
97
98
99
 
100
101
102
103
104
105
106
107
0
@@ -97,7 +97,11 @@ class Merb::Cache::MemcacheStore
0
   # nil is returned whether the entry expired or was not found
0
   def cache_get(key)
0
     data = @memcache.get(key)
0
- Merb.logger.info!("cache: #{data.nil? ? "miss" : "hit"} (#{key})")
0
+ if data.nil?
0
+ Merb.logger.info!("cache: miss (#{key})")
0
+ else
0
+ Merb.logger.debug!("cache: hit (#{key})")
0
+ end
0
     data
0
   end
0
 

Comments

    No one has commented yet.