search for: fragment_cache_store

Displaying 7 results from an estimated 7 matches for "fragment_cache_store".

2006 Mar 29
2
Fragment Cache Wackiness
I can''t seem to get the fragment cache to use :file_store. I''d really appreciate it if someone could point me in the right direction. Rails 1.1 final, FreeBSD Observe: In environment.rb AND production.rb (for good measure, DRY be damned): ActionController::Base.fragment_cache_store = :file_store, "/www/apps/localfeeds/directory/tmp/fragmentcache/" At the console prompt: Loading production environment. >> ActionController::Base.fragment_cache_store => #<ActionController::Caching::Fragments::FileStore:0x8f81bac @cache_path="/www/apps/localfeeds/...
2006 Aug 19
3
memcache-client working for anyone?
...: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 am missing something. Thanks! -- Posted via ht...
2007 Sep 07
2
memcached and fragment storage, session storage with a mongrel cluster
...ng file-based fragment caching 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...
2006 Jan 13
6
rails bug ? metadata lost between page invocation ?
Ok, so I posted this on the ''ruby on rails'' newsgroup (http://groups.google.com/group/rubyonrails/browse_frm/thread/cfce770d3fbfbd1f/a51aad47e46e2adf#a51aad47e46e2adf) but didn''t get very far. Hopefully this community will be able to help or let me know whether this is a genuine rails bug. This is a lengthy post, but please bear with me. So, I am trying to cache
2006 Apr 20
12
memcache, sessions, fragments, oh my!
...#39;'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 } MEMCACHE_SERVERS = [ ''192.168.1.20:...
2006 Jun 30
1
Apache Cache
Hi, I have a strange problem. I have implemented fragment caching. I am pulling my delicious links to my site. I print out to the log every time it connects to delicious. >From the logs I see that it is not using the cached fragment. It connects on every page load. This is running under Apache2 (ubuntu). I am using the default .htacess file that came with RoR. However when I run it
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