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@googlegroups.com.
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/-/VHdWaQC1oLQJ.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Colin Law at Aug 16, 2012 at 7:58 pm

    On 16 August 2012 11:38, Everett 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@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Everett at Aug 17, 2012 at 10:23 am
    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...@gmail.com <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@googlegroups.com.
    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.
  • Colin Law at Aug 17, 2012 at 3:24 pm

    On 17 August 2012 11:23, Everett 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 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@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedAug 16, '12 at 11:42a
activeAug 17, '12 at 3:24p
posts4
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Everett: 2 posts Colin Law: 2 posts

People

Translate

site design / logo © 2022 Grokbase