Hye everybody ! I try to caching some pictures, to speed accrease my web site ! I have a def which a array of url in an helper and in the view just a loop by .each on the return of for display a html <img src= myvar> If you have any idea to suggest i''m really open I have try to follow this http://code.coneybeare.net/make-your-own-cache-system-in-ruby-on-rails Thanks all ! -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/VHdWaQC1oLQJ. For more options, visit https://groups.google.com/groups/opt_out.
On 16 August 2012 11:38, Everett <themsamus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hye everybody ! > > I try to caching some pictures, to speed accrease my web site ! > I have a def which a array of url in an helper and in the view just a loop > by .each on the return of for display a html <img src= myvar> > If you have any idea to suggest i''m really open I have try to follow this > http://code.coneybeare.net/make-your-own-cache-system-in-ruby-on-railsI think you need to explain your problem more fully. Are you using Amazon''s webservers as in the link you posted to? Exactly what problem are you trying to solve by caching, and what are you trying to cache and where to you want to cache it? Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Hye Colin ! Firstly thank you for your answer ! I try to caching my pictures on my app serv on the public folder of my rails app, i''ll create a sub folder cache.{id-user} I launch a function which return me a array of url, like that "http://www.bytebob.com/images/ruby.png" and in my view I do a loop by .each, and for every occured, it puts <img src="{url}"> So it make some time to get url, and I want caching the .png/.jpg/... file, like a thumbnail, on a folder to increase speed Like that it''ll take some time just one time, when user connect ! I use RAILS 3 + Devise + Mongoid Sorry for my English ! =S Le jeudi 16 août 2012 21:57:59 UTC+2, Colin Law a écrit :> > On 16 August 2012 11:38, Everett <them...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> wrote: > > Hye everybody ! > > > > I try to caching some pictures, to speed accrease my web site ! > > I have a def which a array of url in an helper and in the view just a > loop > > by .each on the return of for display a html <img src= myvar> > > If you have any idea to suggest i''m really open I have try to follow > this > > http://code.coneybeare.net/make-your-own-cache-system-in-ruby-on-rails > > I think you need to explain your problem more fully. Are you using > Amazon''s webservers as in the link you posted to? Exactly what > problem are you trying to solve by caching, and what are you trying to > cache and where to you want to cache it? > > Colin >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/K0KfYWSCkBMJ. For more options, visit https://groups.google.com/groups/opt_out.
On 17 August 2012 11:23, Everett <themsamus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hye Colin ! > Firstly thank you for your answer ! > I try to caching my pictures on my app serv on the public folder of my rails > app, i''ll create a sub folder cache.{id-user} > I launch a function which return me a array of url, like that > "http://www.bytebob.com/images/ruby.png" > and in my view I do a loop by .each, and for every occured, it puts <img > src="{url}"> > So it make some time to get url, and I want caching the .png/.jpg/... file, > like a thumbnail, on a folder to increase speed > Like that it''ll take some time just one time, when user connect !I don''t understand why cacheing the images will make it quicker. Where are they coming from in the first place? Also could you please not top post, it makes it difficult to follow the thread. Insert you reply at appropriate places in previous messages, thanks. Colin> > I use RAILS 3 + Devise + Mongoid > > Sorry for my English ! =S > > Le jeudi 16 août 2012 21:57:59 UTC+2, Colin Law a écrit : >> >> On 16 August 2012 11:38, Everett <them...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > Hye everybody ! >> > >> > I try to caching some pictures, to speed accrease my web site ! >> > I have a def which a array of url in an helper and in the view just a >> > loop >> > by .each on the return of for display a html <img src= myvar> >> > If you have any idea to suggest i''m really open I have try to follow >> > this >> > http://code.coneybeare.net/make-your-own-cache-system-in-ruby-on-rails >> >> I think you need to explain your problem more fully. Are you using >> Amazon''s webservers as in the link you posted to? Exactly what >> problem are you trying to solve by caching, and what are you trying to >> cache and where to you want to cache it? >> >> Colin-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.