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
Search Repo:
Log expire_match for memcache and update the docs to reflect real world 
usage (Thanks atmos!).
wayneeseguin (author)
Tue Jul 08 13:55:53 -0700 2008
commit  e2a8eb2f2f69cf213ef20588a66de2906308123a
tree    b6227f1b119ba14676d674f1ed6683fe3d7ba4e3
parent  87988b9101c4eaf04be5874abd272ae85bab280b
...
89
90
91
92
 
93
94
95
...
89
90
91
 
92
93
94
95
0
@@ -89,7 +89,7 @@ Implemented cache stores:
0
     #:store => "memcache",
0
     #:host => "127.0.0.1:11211",
0
     #:namespace => "merb_cache",
0
- #:no_tracking => "false",
0
+ #:no_tracking => false,
0
 
0
     #:store => "memory",
0
     # store could be: file, memcache, memory, database, dummy, ...
...
124
125
126
127
 
 
 
 
128
129
130
...
124
125
126
 
127
128
129
130
131
132
133
0
@@ -124,7 +124,10 @@ class Merb::Cache::MemcacheStore
0
   def expire_match(key)
0
     if @tracking_key
0
       for _key in get_tracked_keys
0
- expire(_key) if /#{key}/ =~ _key
0
+ if /#{key}/ =~ _key
0
+ expire(_key)
0
+ Merb.logger.info("cache: expired #{_key}")
0
+ end
0
       end
0
     else
0
       Merb.logger.info("cache: expire_match is not supported with memcache (set :no_tracking => false in your config")

Comments

    No one has commented yet.