stephen.celis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Oct-27 14:14 UTC
Edge Javascript caching just not working
For some reason, in production, with this one line of code: javascript_include_tag :all, :cache => true I get this: <script cached="true" src="/javascripts/prototype.js?1193454472" type="text/javascript"></script> <script cached="true" src="/javascripts/effects.js?1193454472" type="text/javascript"></script> <script cached="true" src="/javascripts/dragdrop.js?1193454472" type="text/javascript"></script> <script cached="true" src="/javascripts/controls.js?1193454472" type="text/javascript"></script> <script cached="true" src="/javascripts/all.js?1192673515" type="text/ javascript"></script> <script cached="true" src="/javascripts/application.js?1189968913" type="text/javascript"></script> I''ve tried setting production.rb with both the default: config.action_controller.perform_caching = true and: ActionController::Base.perform_caching = true to no avail. Did the syntax change? Is this just not implemented yet? Stephen --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
stephen.celis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Oct-27 14:38 UTC
Re: Edge Javascript caching just not working
Eh, I always forget to screw around with syntax a bit more. If you ever have this problem, try: javascript_include_tag(:all, :cache => true) The parentheses will let things parse as they should. On Oct 27, 9:14 am, "stephen.ce...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <stephen.ce...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> For some reason, in production, with this one line of code: > > javascript_include_tag :all, :cache => true > > I get this: > > <script cached="true" src="/javascripts/prototype.js?1193454472" > type="text/javascript"></script> > <script cached="true" src="/javascripts/effects.js?1193454472" > type="text/javascript"></script> > > <script cached="true" src="/javascripts/dragdrop.js?1193454472" > type="text/javascript"></script> > <script cached="true" src="/javascripts/controls.js?1193454472" > type="text/javascript"></script> > <script cached="true" src="/javascripts/all.js?1192673515" type="text/ > javascript"></script> > <script cached="true" src="/javascripts/application.js?1189968913" > type="text/javascript"></script> > > I''ve tried setting production.rb with both the default: > > config.action_controller.perform_caching = true > > and: > > ActionController::Base.perform_caching = true > > to no avail. > > Did the syntax change? Is this just not implemented yet? > > Stephen--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---