rails/rails — Issue #5245: cache: [GET /] miss on default Rails application in production mode Rails 3.2.1
Author: leonardteo
Created: 2012-03-02 18:42:20+00:00
State: open

Hi all,

I'm not sure if this is an issue (yet) but I've seen this reported in various ways. Basically rails will log cache misses like this:
cache: [GET /] miss
cache: [GET /assets/rails.png] miss

If you deploy this on Phusion Passenger, it fills the error.log file with cache misses.

Here's the steps I've taken to reproduce this issue.

1. Create a new rails app
rails new testapp

cd testapp

2. Precompile the assets
rake assets:precompile

3. Edit production.rb to make it serve static assets
config.serve_static_assets = true (default is false)

4. Start webbrick in production mode
rails server -e production

5. Point browser to http://localhost:3000
Rails will log this:

cache: [GET /] miss
cache: [GET /assets/rails.png] miss

Info:
Rails 3.2.1
Ruby 1.9.2

Curious if anyone else is having this issue and if there's a workaround in the meantime. I've noticed that setting config.action_controller.perform_caching to false will disable caching and hence silence the messages, but I was hoping to take advantage of caching.

Any help would be most appreciated.

Leo