title: Rails3 - Caching in development mode with Rails.cache.fetch
body: <p>In development, the following (simplified) statement always logs a cache miss, in production it works as expected:</p>
  
  <pre><code>@categories = Rails.cache.fetch("categories", :expires_in =&gt; 5.minutes) do
    Rails.logger.info "+++ Cache missed +++"
    Category.all
  end
  </code></pre>
  
  <p>If I change config.cache_classes from false to true in config/development.rb, it works as well in development mode, however, this makes development rather painful. Is there any configuration setting that is like <code>config.cache_classes = false</code> except that Rails.cache.fetch is fetching from cache if possible?</p>