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
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 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
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?
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
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 aot 2012 21:57:59 UTC+2, Colin L. a crit :
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.