similar to: fragment caching file_store problems

Displaying 20 results from an estimated 300 matches similar to: "fragment caching file_store problems"

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
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
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) | Rendering: 0.00702 (73%) | DB: 0.00000(0%)
2010 Nov 12
0
wrong number of arguments (0 for 1) (ArgumentError)
if i run rails serve i am fa C:\forex>rails server => Booting WEBrick => Rails 3.0.0 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/cache/file_store.rb:17:in `initialize'': wrong number of arguments (0 for 1) (ArgumentError)
2008 Jun 11
2
Mounting Samba Share using linux login
Windows users are able to mount samba share using windows. But for linux user, we need to create credentials file, to mount samba share e.g: //servername/file_store /home/user/Desktop/file_storage smbfs credentials=/root/.smbcredentials Is it possbile to change the credentials to something like windows users (for example credentials=unix user) so as the mounted share would depend on who login
2008 May 01
0
users home folders, with windbind AD auth.
I am trying to map existing users to their old home folders (moved over from a windows box), I have authentication up and running great. And I have all my shares setup and working except for the users home folders. Does this look like a local permission issue? Any help is much appreciated, and thank you in advance for taking the time to read. The home directories are their usernames in
2008 Jun 29
9
OS X wine port install error
I tried installing wine using MacPorts, and this is what happened: Code: ryan-vecas-macbook-pro:~ rveca$ sudo port install wine Password: ---> Configuring expat Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/expat-2.0.1"
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,
2008 Jun 23
1
updating to 2.1.0 using InstantRails2.0 - cache problem
hello. i''m trying to update to rails 2.1 using instant rails, so i 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 =
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 console I can clearly see it''s using
2008 Sep 24
3
caches_page :if not executing (but caches_action :if) does
Hi folks - Seeing a weird problem and would love some help. It''s documented in http://pastie.org/278310 to be more readable. In short, I have a caches_page "action", :if => {stuff} but the :if is never being called - the action is just caching every time. (If I put a debugger call in the :if block, it never stops.) If I replace caches_page with caches_action, the if
2008 Jun 23
2
From Instant Rails 2.0 to Rails 2.1.0 - cache problem
i''m trying to update to rails 2.1 using 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
2006 Jan 30
1
find_by_sql and memcached
Is a find_by_sql query cached with memcached and cached_model (http://dev.robotcoop.com/Libraries/)? Looks like 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
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
2008 Aug 24
0
Running specs within a spec server
Hi guys. I''m unable to run my specs through a spec server. I''ve spent several hours searching and playing around with this problem, and I simply can''t find a solution. So if anyone has any suggestions, I''m all ears. Does script/server need to be running in conjunction with the spec server? I have "--drb" specified in spec/spec.opts . I start
2008 Jul 05
0
Undefined Method Angst After Rails / Ruby / Gem Updates
I have what appears to be a problem accessing methods from within an application. I can access them from irb, but not from within the app. In other words: irb(main):001:0> require ''rubygems'' => true irb(main):002:0> require ''haml'' => true irb(main):003:0> Haml.respond_to?(''init_rails'') => true
2019 Apr 19
1
winbind offline login - NT_STATUS_NO_SUCH_USER (0xc0000064)
On Fri, 19 Apr 2019 11:58:23 +0200 Martin Krämer <mk.maddin at gmail.com> wrote: > Hi Rowland, > > thanks for your reply. > > > I personally would have used 'cache directory =' , see 'man > > smb.conf' for the difference. > From description based on man smb.conf I would absolutely agree. > I have tried and set the "cache directory"
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
2009 May 11
0
CloudCache for Ruby on Rails
Quetzall.com is pleased to announce CloudCache for Ruby on Rails, implementing the ActiveSupport::Cache interface. The gem is open source (Apache License version 2.0) and is available at http://code.google.com/p/cloudcache-ruby/ . Steps to install and use: 1. gem install cloud_cache activesupport right_aws uuidtools 2. Sign up for the service at http://quetzall.com - note the Quetzall
2012 Jan 25
0
Can't Get Caching to Work with Heroku and Memcache
I''m on Heroku and trying to implement caching in my Rails app, but I''m running into some problems that I don''t understand. I thought it would be easy after reading the Rails Guide and Heroku docs on caching strategies, but apparently doing something wrong. Issue 1: view of action doesn''t seem to expire Issue 2: when I use :layout => false, both my admin