title: Confusion caching Active Record queries with  Rails.cache.fetch
body: <p>My version is:</p>
  
  <ul>
  <li>Rails: 3.2.6 </li>
  <li>dalli: 2.1.0</li>
  </ul>
  
  <p>My env is:</p>
  
  <ul>
  <li>config.action_controller.perform_caching = true</li>
  <li>config.cache_store = :dalli_store, 'localhost:11211', {:namespace => 'MyNameSpace'}</li>
  </ul>
  
  <p>When I write:</p>
  
  <pre><code> Rails.cache.fetch(key) do
       User.where('status = 1').limit(1000)
   end
  </code></pre>
  
  <p>The user model can't be cached. If I use</p>
  
  <pre><code> Rails.cache.fetch(key) do
       User.all
   end
  </code></pre>
  
  <p>it can be cached. How to cache query result?</p>