This project is archived and is in readonly mode.

#637 ✓wontfix
Damian Janowski

Issue a warning when running production mode with cache_classes turned off

Reported by Damian Janowski | July 16th, 2008 @ 09:22 PM | in 2.x

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.)

Comments and changes to this ticket

  • José Valim
  • josh

    josh July 17th, 2008 @ 12:29 AM

    • 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.

  • Damian Janowski

    Damian Janowski July 17th, 2008 @ 06:28 PM

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

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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages