Posts

Showing posts with the label Rails Caching

Rails Memcache issues

Error :- down_retry_delay not reached for localhost:11211 (0.001 seconds left) down_retry_delay not reached for localhost:11211 (0.001 seconds left) down_retry_delay not reached for localhost:11211 (0.001 seconds left) down_retry_delay not reached for localhost:11211 (0.001 seconds left) [2012-03-20 15:08:28] ERROR NoMethodError: You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.each     /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.3.6/lib/rack/handler/webrick.rb:71:in `service'     /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'     /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'     /usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread' cache: [GET /assets/kanga_custom/search_merchant.js?body=1] miss, ...

Rails action catching with parameters values

http://cobaltedge.com/rails-action-caching-with-query-parameters

Caching in Rails

Image
you can find this documentation in http://blazingcloud.net/2010/11/21/caching-in-rails/ Caching in Rails In Rails we have two different ways of Caching - Page Caching: which is always stored on Disk - Action & Fragment Caching: which uses the configure cache configured in our Rails instance. By default Rails provides three techniques: 1) Page Caching Allows the request for a generated page to be fulfilled by the webserver, without ever having to go to your RoR application. In other words if you have page caching turned on,  the request will come in, go to Mongrel, the page will then be generated, and then sends  it back to apache.  Additionally,  it will be stored in a local file system. Next time we request the same page, apache will load the page from the filesystem and send it back to the client, without your...