Pre-processing in development mode caches after the first call - which
is usually fine - however, when using an erb template with potentially
dynamic output, the cache doesn't clear.
For example, if I have a javascript file in the asset pipeline called
"time.js.erb", which outputs an alert with like so:-
alert('<%= Time.now %>');
I only get the time for the first request and all other requests are
the cached result. Surely the cache should be invalidated when the
dynamic erb output changes?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.