title: Rails 3 cache not working. Dalli
body: <p>development.rb cache configuration</p>
  
  <pre><code>  config.action_controller.perform_caching = true
    config.cache_store = :dalli_store, 'localhost:11211',
      { :namespace =&gt; APP_NAME, :expires_in =&gt; 3.month, :compress =&gt; true }
  </code></pre>
  
  <p>production.rb cache configuration</p>
  
  <pre><code>   config.action_controller.perform_caching = true
     config.cache_store = :dalli_store, 'localhost:11211',
       { :namespace =&gt; APP_NAME, :expires_in =&gt; 3.month, :compress =&gt; true }
  </code></pre>
  
  <p>in console </p>
  
  <pre><code>rails c production
  Loading production environment (Rails 3.2.3)
  1.9.3-p125 :001 &gt; Rails.cache.write 'res', "Hello World"
   =&gt; true 
  1.9.3-p125 :002 &gt;  Rails.cache.read 'res'
   =&gt; nil 
  1.9.3-p125 :003 &gt; 
  </code></pre>
  
  <p>Why?</p>