On 19 Nov, 23:41, Philip Hallstrom <[email protected]> wrote:

> compression?  Not sure what you mean.  Memcached is very fast.  Most  
> people use it because their db isn't fast enough or to lighten the  
> load...
it is an memcached options. but i'm not so convinced about it
e.g.:
memcache_options = {
   :compression => true,
   :namespace => "foobar",
   :readonly => false,
}
i think the idea is to store more data on the cache. but compression/
decompression may slow down the process...
if i don't find out something i will do a benchmark about it.

>
> > c)
> > i need a time based fragment expirations. i read about
> >http://agilewebdevelopment.com/plugins/memcache_fragments_with_time_e...
> > but it return me a "plugin not found" error.
>
> You shouldn't need a plugin to get going... add this to your  
> environment.rb (or one of the specific ones in environments)
>
> config.cache_store = :mem_cache_store, "localhost", {:namespace =>  
> 'foobar'}
>
> Then in your views you can do things like:
>
> <% cache(:some_unique_key, :expires_in => 15.minutes) do %>
>    complicated html goes here...
> <% end %>
great.

thank you for your answer.

--

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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=.


Reply via email to