Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Issue a warning when running production mode with cache_classes turned off

#637

We've been bitten by this. Could be a huge time saver when sudden performance problems arise.

(Dear committer: please change the wording of the message at will.)

Reported by Damian Janowski · July 16th, 2008 @ 09:22 PM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. José Valim
  2. josh
    josh
    • State changed from new to wontfix

    Technically, is no such thing as "production" mode to Rails. Your environment is determined by the behavior you setup in the environment config. We don't do any ENV == "production" in the framework. cache_classes is the default for the production template that is generated for you.

    July 17th, 2008 @ 12:29 AM

  3. Damian Janowski
    Damian Janowski

    Fair enough. It looks like the default behavior for a missing cache_classes should be true, not false. Please look at #645 cache_classes should be true by default.

    (BTW, there are two ENV == 'production' checks in initializer.rb. But I understand your point)

    July 17th, 2008 @ 06:28 PM