search for: mem_cache_stor

Displaying 20 results from an estimated 20 matches for "mem_cache_stor".

Did you mean: mem_cache_store
2005 Dec 25
1
How to use mem_cache_store?
Hi, I''m trying to use mem_cache_store for sessions. I have installed the server and the gem and have added the following to my config/environment.rb: >>>>>>>>>>>>>>>>>>>>>>>>> memcache_options = { :c_threshold => 10_000, :compression => true,...
2006 Aug 19
3
memcache-client working for anyone?
...ment.rb initialize: CACHE = MemCache.new :c_threshold => 10_000,:compression => true,:debug => false,:namespace => ''foo'',:readonly => false,:urlencode => false CACHE.servers = ''localhost:11211'' config.action_controller.session_store = :mem_cache_store config.action_controller.fragment_cache_store = CACHE, {} Incidentally, the session store works with memcache-client, but the fragment cache craps out. I''ve tried every method on every blog entry out there that I could find, but they are inconsistent with the rails source code, or I...
2007 Sep 07
2
memcached and fragment storage, session storage with a mongrel cluster
...aching and DB-based session caching quite extensively. I decided to try out memcached for both to see if I could achieve a meaningful performance gain for a particular app. I searched around a bit and simply added two lines to my development.rb: config.action_controller.fragment_cache_store = :mem_cache_store config.action_controller.session_store = :mem_cache_store (I also changed config.action_controller.perform_caching = true for testing ) This works like a charm on my development box. (Mac) I''ve got memcached -vv running in another terminal window I can see it doing it''s thin...
2008 Jul 15
1
sex expire time for Sessions in memcached
Hi all, I have a problem with expiring sessions in the case with using mem_cache_store. I''ve been using ActiveRecord session store till now and expired them with SQL query. Yesterday I switched to memcache for storing sessions, however I can''t set an expireation period. My current config is this: ======================== memcache_options = { :c_threshold => 1...
2006 Jan 21
3
Fragment caching with Memcached slow?
Hi, I am trying to do fragment caching using :mem_cache_store. However, when I compare it to fragment caching using :file_store, it seems to be a lot slower. Here are the results: uncache Completed in 2.20246 (0 reqs/sec) | Rendering: 2.19891 (99%) | DB: 0.00017(0%) | 200 OK [ http://127.0.0.1/] using file_store Completed in 0.00952 (105 reqs/sec) | Rend...
2010 May 29
0
User Error during memcached integration
...29 STAT bytes_written 53036649 STAT limit_maxbytes 30064771072 STAT threads 5 STAT accepting_conns 1 STAT listen_disabled_num 0 Below are the configuration details and stacktrace: config/environment.rb (the important parts) ================================ config.action_controller.session_store = :mem_cache_store config.gem "memcache-client", :lib => ''memcache'' config/environments/production.rb =========================== config.cache_store = :mem_cache_store require ''memcache'' Caching Memcached configuration memcache_options = { :c_threshold => 100_00...
2009 May 26
2
memcache for variables
hey, for performance reasons i want to cache (template) variables using memcache, making access to data easy in templates by using a simple syntax like <%=users(2).name%>. this actually should tell the view to load the field ''name'' from the model/table ''users'' with id=2. it first tries memcache and if not found, loads the data from the and stores it in
2006 Apr 20
12
memcache, sessions, fragments, oh my!
...SessionStore and hitting a brick wall. I''m using the new memcache-client since from what I''ve read it''s faster, but it''s implementation is different enough that I can''t figure out how to make it work with: config.action_controller.session_store = :mem_cache_store config.action_controller.fragment_cache_store = :mem_cache_store I''ve got this in environment.rb as well: MEMCACHE_OPTIONS = { :compression => false, :debug => false, :namespace => "#{RAILS_ENV}", :readonly => false, :urlencode => false...
2009 Feb 18
4
expire_fragment with memcached
...ent with memcached as following : expire_fragment(:controller => ''home'', :action => :list_posts) But apparently it''s not supported by memcached : RuntimeError (Not supported by Memcache): /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/cache/mem_cache_store.rb:79:in `delete_matched'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/fragments.rb:128:in `expire_fragment'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:26:in `benchmark'' /usr/lib/ruby/gems/...
2006 Jan 17
10
ActiveRecord + memcache = cached_model
Courtesy of The Robot Co-op. $ yes | sudo gem install cached_model Or, you can download cached_model and memcache-client (our zippy-fast memcache library, required) from: http://rubyforge.org/frs/?group_id=1266 I don''t have the README posted for making cached_model work online yet, so here it is: = CachedModel Rubyforge Project: http://rubyforge.org/projects/rctools/ == About
2006 Jul 21
2
mongrel, memcache and sessions
...e with actionpack-1.12.0, but when I upgraded to actionpack-1.12.3, I started getting a "can''t convert String into Hash" error from memcache.rb from memcache-client. I was able to fix it by changing the way the MemCache object was created in actionpack/action_controller/session/ mem_cache_store.rb from: @cache = options[''cache''] || MemCache.new(''localhost'') to: @cache = options[''cache''] || MemCache.new() @cache.servers = ''localhost'' I''m not sure how this would affect the other...
2008 Nov 25
0
Sanitizing the New Session Key Format
Facebook''s new session format contains periods and underscores which appear to be breaking mem_cache_store. To get my app working again, I appended the following code to the end of environment.rb class CGI class Session class MemCacheStore def check_id(id) #:nodoc:# id = id.gsub(''-'', '''').gsub(''.'', '''').gsub(''_&...
2006 Oct 11
0
storing typo sessions in memcache
...ead.rb:135:in `synchronize'' /usr/lib/ruby/gems/1.8/gems/memcache-client-1.0.3/lib/memcache.rb:98:in `get'' /usr/lib/ruby/gems/1.8/gems/memcache-client-1.0.3/lib/memcache.rb:191:in `[]'' /var/www/blogs/kurt_blog/config/../vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb:67:in `restore'' /usr/lib/ruby/1.8/cgi/session.rb:305:in `[]'' /var/www/blogs/kurt_blog/config/../vendor/rails/actionpack/lib/action_controller/cgi_process.rb:113:in `session'' /var/www/blogs/kurt_blog/config/../vendor/rails/actionpack/lib/action_controller/cgi_process.r...
2013 Jul 10
0
ActionView::Template::Error Not a directory vendor/assets/javascripts/ production
...= :debug # Prepend all log lines with the following tags # config.log_tags = [ :subdomain, :uuid ] # Use a different logger for distributed setups # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) # Use a different cache store in production # config.cache_store = :mem_cache_store # Enable serving of images, stylesheets, and JavaScripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) # config.assets.precompile...
2010 Mar 03
2
Memcached: "no such file to load -- memcache-client" when running script/console
...wn the memcached path and everything was running grand until I decided to start up my console. I have manually installed libevent 1.4.13 and memcached 1.4.4 into /usr/local, following which I sudo gem installed memcache-client and SystemTimer. development.rb has been modified to do caching with the mem_cache_store. The memcached process seems to work and my script/server starts up fine. However, when I try script/console, I get the errors pasted at the bottom of this post. If I test out some cache commands such as Rails.cache.write(''foo'', ''bar''), Rails.cache.read('...
2014 Jun 11
0
my webpage does not send emails confimation/notification
...vel = :debug # Prepend all log lines with the following tags # config.log_tags = [ :subdomain, :uuid ] # Use a different logger for distributed setups # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) # Use a different cache store in production # config.cache_store = :mem_cache_store # Enable serving of images, stylesheets, and JavaScripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) # config.assets.precompile +=...
2014 Apr 26
0
jquery_ujs.js 404
...= :debug # Prepend all log lines with the following tags # config.log_tags = [ :subdomain, :uuid ] # Use a different logger for distributed setups # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) # Use a different cache store in production # config.cache_store = :mem_cache_store # Enable serving of images, stylesheets, and JavaScripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) config.assets.precompile += %...
2009 Apr 13
6
Memcached 1.6.5 (Rails 2.3) 10x slower
The move to memcached_client 1.6.5 in Rails 2.3 seems to have made the Rails cache about 10x slower. Since that''s the opposite effect I would expect, I was hoping somebody would explain where I''m misreading these numbers? I noticed my fragment caching was slow -- it shouldn''t take 2ms just to read a 2k string from a localhost memcached server: Cached fragment hit:
2007 Aug 20
5
byte-range requests
Hello everyone, I did some initial tests and it seems that mongrel does not support byte-range requests. Is this correct? The reason I ask is that the iPhone requires byte-range requests to work in order to stream audio or video from a web server. Thanks in advance, alan
2010 Feb 06
4
500 Internal Error
...get'' /usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.7.7/lib/ memcache.rb:878:in `with_server'' /usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.7.7/lib/ memcache.rb:251:in `get'' /home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/ session/mem_cache_store.rb:61:in `initialize'' /usr/local/lib/ruby/1.8/cgi/session.rb:280:in `new'' /usr/local/lib/ruby/1.8/cgi/session.rb:280:in `initialize_without_cgi_reader'' /home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/ cgi_ext/session.rb:39:in `initialize...