Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

cache_fu rake task

#19

after installing the cache_fu plugin today (Sunday May 20), I got an error while trying to run 'rake --tasks'.

../vendor/plugins/cache_fu/tasks/memcached.rake:21: syntax error, unexpected kRESCUE_MOD, expecting ')' config = YAML.load_file('../../../config/memcached.yml' rescue '../defaults/memcached.yml.default')

I think the issue was the following line of code:

def config
return @config if @config config = YAML.load_file('../../../config/memcached.yml' rescue '../defaults/memcached.yml.default') @config = config['defaults'].merge(config['development']) end

should be something more like:

def config
return @config if @config

begin config = YAML.load_file('../../../config/memcached.yml')

rescue config = YAML.load_file('../defaults/memcached.yml.default') end

@config = config['defaults'].merge(config['development']) end

Reported by Carlos OKieffe · May 21st, 2007 @ 01:31 AM

State: resolved
Milestone: none
Assigned to: Chris Wanstrath Chris Wanstrath

Activity

  1. Chris Wanstrath
    Chris Wanstrath
    • State changed from new to resolved

    (from [232]) fix broken syntax in cache_fu rake file [#19 state:resolved]

    http://require.errtheblog.com/pl...

    May 21st, 2007 @ 01:31 AM

  2. Chris Wanstrath

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.