I''d definitely take a patch to reset this cache when the application
reloads. Nice find!
Cheers
Koz
On 12/02/2008, at 11:45 AM, Aaron Pfeifer <aaron.pfeifer@gmail.com>
wrote:
>
> I thought I''d throw this question in here since I wasn''t
hearing
> anything from the Talk mailing list.
>
> Previously, ActionView::Helpers::AssetTagHelper#compute_public_path
> did not keep a cache of the computed paths, meaning that the path
> would change when an asset was modified. However, the paths are now
> cached, meaning that the appended asset id will not change if the file
> is modified.
>
> For me, this has caused problems since applications (in this case,
> Facebook) that cache based on the name of the file will never pull the
> new file if it''s been modified.
>
> It would seem to me that, in development mode, it should either:
> (a) Not cache the public paths or
> (b) Clear ActionView::Base.computed_public_paths after the application
> has been reloaded
>
> Thoughts?
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---