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.

Tempalte cache in development broken

#2184

My application in development environment doesn't reload templates. I need to restart it after changes any changes in template.

I've bisected from edge to this commit, all before this commit works ok.


893e9eb99504705419ad6edac14d00e71cef5f12 is first bad commit
commit 893e9eb99504705419ad6edac14d00e71cef5f12
Author: Andrew White <andyw@pixeltrix.co.uk>
Date:   Mon Feb 9 14:20:30 2009 -0600

    Improve view rendering performance in development mode and reinstate template recompiling in production [#1909 state:resolved]

    Signed-off-by: Joshua Peek <josh@joshpeek.com>

:040000 040000 be4ff1533dfb27616ee484acce2b4ae1a89d6029 51391ab30b2bab9fe14f98f84c20845718dec2e9 M  actionpack
:040000 040000 95bb2a437ddbcd6b9534bfb103772d285423c0fe 7cb70665188dd0a04f25ab82b5f0ff8e3b278082 M  railties

Reported by Paweł Kondzior · March 9th, 2009 @ 07:32 PM

State: resolved
Milestone: 2.x
Assigned to: josh josh
Importance: none

Activity

  1. Paweł Kondzior
    Paweł Kondzior
    • Assigned user set to josh

    March 9th, 2009 @ 07:32 PM

  2. Paweł Kondzior
    Paweł Kondzior

    Ok, sorry for confusing. I figured out why this doesn't work:

    config.threadsafe! have influence on this line http://github.com/rails/rails/co....

    Putting this in environment.rb will have lead to not reloaded tempaltes.

    March 9th, 2009 @ 07:40 PM

  3. thedarkone
    thedarkone

    Hi Pawel,

    just making sure you don't shoot yourself in the leg, reloadable templates are not thread safe (neither is class reloading in development mode etc.).

    March 9th, 2009 @ 10:30 PM