search for: cache_stor

Displaying 20 results from an estimated 21 matches for "cache_stor".

Did you mean: cache_store
2011 Jul 01
0
config.cache_store file path ignored?
Hi- I have enabled caching in my application and am using the :file_store option, as shown below (enabled in each environment). config.cache_store = :file_store, "#{Rails.root}/public/cache" Why is it that the file path I set is ignored? Everything seems to get dumped out to /public, by default. Thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post t...
2011 Apr 27
3
Can't configure cach_store in an initializer
I''m trying to use redis-store as my cache_store. I also have an app_confirg.rb initalizer which loads a yaml file for config settings. In my redis.rb initializer I have: MyApp::Application.config.cache_store = :redis_store, APP_CONFIG[''redis''] However, this doesn''t appear to work. If I do Rails.cache in my rails con...
2008 Jun 23
1
updating to 2.1.0 using InstantRails2.0 - cache problem
...can use the new cache features, but when i try to use the method "Rails.cache.write" in a controller, i get the error "undefined method `cache'' for Rails:Module (NoMethodError)" and if i try to force the cache store to memory_store using "ActionController::Base.cache_store = :memory_store" in a conf file, i get: "undefined method `cache_store='' for ActionController::Base:Class (NoMethodError)" the version message for ("rails -v") is "Rails 2.1.0", so i assume that the version is ok. does anyone know what could be the pro...
2010 Nov 18
0
Rails 3 upgrade - Custom cache store
I had a custom cache store set up in Rails 2.3. I''m in the process of upgrading to rails 3, but have run into a snag. Before I had all the setting in my environment.rb. It would basically load a yaml file with my server settings, and set up the store via config.cache_store. It seemed like the correct place for this in Rails 3 was as an initializer. So I did basically the same thing, except using MyApp::Application.config.cache_store. I don''t get any errors, but when the app loads, Rails.cache returns #<ActiveSupport::Cache::FileStore. Another interest...
2008 Sep 28
4
Cannot expire cache from background process?
Hello, I am trying to expire fragments (or at least trigger their expiration) from a daemon that''s running in the background. The daemon is updating all kinds of important lists every few minutes from the background. So I have to find some way to DO or TRIGGER the fragment caching from this daemon. Unfortunately just using the normal commands like: expire_fragment :controller =>
2006 Jan 30
1
find_by_sql and memcached
...ke the answer is no. Is there a reason for this? I have a lot of very complicated querys with a lot of unions, subquerys and joins that would greatly benefit from the cache. Going through the code I can see that the find_by_sql method is changed in cached_model.rb, but it does not call Cache.get or cache_store. Why? I am tempted to add it...
2008 Jun 23
2
From Instant Rails 2.0 to Rails 2.1.0 - cache problem
...instant rails, so i can use the new cache features, but when i try to use the method "Rails.cache.write" in my controller, i get the message "undefined method `cache'' for Rails:Module (NoMethodError)" and if i try to set the cache store ("ActionController::Base.cache_store = :memory_store") in a conf file, i get: "undefined method `cache_store='' for ActionController::Base:Class (NoMethodError)" the version message for ("rails -v") is "Rails 2.1.0", so i assume that the version is ok. does anyone know what could be the pro...
2010 Mar 31
1
Custom cache store – possible?
Hi. I want to define my own cache store but I have no idea how to use in my app. Rails initializer reads environment config before loading app initializers and plugins. So, i cant write: config.cache_store = :my_beautiful_cache_store, ''localhost:641'' even if I put ActiveSupport::Cache::MyBeautifulCacheStore in config/ initializers. Now i think it is impossible to define my own cache store. Am I right? Thanks in advance. -- You received this message because you are subscribed t...
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
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...
2009 May 11
0
CloudCache for Ruby on Rails
...te the Quetzall Access Key and Quetzall Secret Key 3. require ''cloud_cache'' in config/environment.rb 4. In app/controllers/application/controller, add: 5. CC_ACCESS_KEY = ''...'' 6. CC_SECRET_KEY = ''...'' 7. ActionController::Base.cache_store = :cloud_cache, "default", CC_ACCESS_KEY, CC_SECRET_KEY 8. restart apache or webbrick or nginx... The cost of the service is only a nickle per MB-month. Plus, we have a money-back guarantee - if you provide a CloudCache service defect report to the CloudCachews <http://groups....
2009 Jun 11
1
fragment caching file_store problems
...but strangely, all of the directories apart from the last one are created. Adding path components to generate a key makes no difference. I have no idea how to debug this, and have googled to no avail. I don''t have any caching plugins installed. environment.rb: config.action_controller.cache_store = :file_store, "#{RAILS_ROOT}/ cache" and I have perform_caching set to true in both dev and production and I set my cache directory to 777, all to no avail. About your application''s environment Ruby version 1.8.7 (i686-darwin9.3.0) RubyGems version 1.3.3...
2009 Sep 24
0
ActiveSupport-GemFireCache a Jruby/Rails Plugin
Hello, Just wanted to let the community know that I put some time/effort into building a basic Jruby/Rails plugin that will allow you to replace the cache_store with one specific for the Gemfire Cache Server. For those not familiar with Gemfire, its an enterprise grade memory caching fabric with tons of interesting features and great scalability. We have been testing some java implementations so I thought I would give a shot at building a gem for use na...
2012 Jan 25
0
Can't Get Caching to Work with Heroku and Memcache
...1: view of action doesn''t seem to expire Issue 2: when I use :layout => false, both my admin and app layout are used (trying to only get the application layout) Any help for this newbie would be most appreciated! production.rb (also installed dalli per heroku documentation) config.cache_store = :dalli_store config.action_controller.perform_caching = true (added after reading http://bit.ly/oRKub1) controller layout ''admin'' caches_action :show, :layout => false def show render :layout => ''application'' end def update expire_action :action...
2013 Jul 10
0
ActionView::Template::Error Not a directory vendor/assets/javascripts/ production
...onfig.log_level = :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...
2010 Nov 12
0
wrong number of arguments (0 for 1) (ArgumentError)
...tivesupport-3.0.0/lib/active_support/cache.rb:69:in `new'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/cache.rb:69:in `lookup_store'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0/lib/action_controller/caching.rb:49:in `cache_store='' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0/lib/action_controller/railtie.rb:54:in `block (3 levels) in <class:Railtie>'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0/lib/action_controller/railtie.rb:54:in `each''...
2008 Jun 23
12
From Instant Rails 2.0 to Rails 2.1.0
hi, I have installed Instant Rails 2.0 on my machine which comes with Rails 2.0.2. Now I want to update my Rails to version 2.1.0. So I do gem update rails and It seems to be fine. But when I check the version of my Rails I get the following message: >rails -v C:/RoR/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:578:in `report_activate_error'': RubyGem version error: activesupport(2.0.2 not
2010 May 29
0
User Error during memcached integration
...TAT 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...
2014 Jun 11
0
my webpage does not send emails confimation/notification
...# config.log_level = :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.a...
2014 Apr 26
0
jquery_ujs.js 404
...onfig.log_level = :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.ass...