jodosha/redis-store — Issue #97: trouble expiring fragment
Author: letronje
Created: 2011-10-20 21:04:39+00:00
State: open

here's how my cache_action is defined :

caches_action :index, :cache_path => Proc.new {
user = current_user
user.nil? ? "/home/index" : "home/index/#{user.id}"
}

in my sweeper,

I would like to expire everything under "home/index/"

def after_update
expire_fragment("home/index")
expire_fragment(/.*home\/index\/.*?/)
end

redis-cli monitor shows the following keys command that it gets :
"del" "views/home/index" ( expected and working fine )
"keys" "(?-mix:.*home\\/index\\/.*?)" ( ????? )

and rails doesn't delete any of the cache entries under "home/index"

Is there a mismatch between ".*" expected by ruby and "*" expected by redis ?
How can I take care of this issue ?

Does this pull request contain the solution ? ( https://github.com/jodosha/redis-store/pull/52 )