Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7726

Show
Ignore:
Timestamp:
10/03/07 16:15:42 (1 year ago)
Author:
rick
Message:

rescue LoadError if memcache isn't available while loading the MemCache fragment store

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/caching.rb

    r7725 r7726  
    486486      end 
    487487 
     488    begin 
    488489      require_library_or_gem 'memcache' 
    489490      class MemCacheStore < MemoryStore #:nodoc: 
     
    498499        end 
    499500      end 
     501    rescue LoadError 
     502      # MemCache wasn't available so neither can the store be 
     503    end 
    500504 
    501505      class UnthreadedFileStore #:nodoc: