This project is archived and is in readonly mode.

Changeset [38d78f99d52801d8392a7229b40edae74cc3d142] by José Valim

October 10th, 2010 @ 08:26 AM

Resolvers now consider timestamps.

Before this patch, every request in development caused the template
to be compiled, regardless if it was updated in the filesystem or not.
This patch now checks the timestamp and only compiles it again if
any change was done.

While this probably won't show any difference for current setups,
but it will be useful for asset template handlers (like SASS), as
compiling their templates is slower than ERb, Haml, etc.
http://github.com/rails/rails/commit/38d78f99d52801d8392a7229b40eda...

Committed by José Valim

  • M actionpack/lib/action_view/template.rb
  • M actionpack/lib/action_view/template/resolver.rb
  • M actionpack/lib/action_view/testing/resolvers.rb
  • M actionpack/test/template/lookup_context_test.rb

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>