similar to: Custom cache store – possible?

Displaying 20 results from an estimated 900 matches similar to: "Custom cache store – possible?"

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 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 =
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 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 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 =>
2008 Nov 07
6
php-cgi frozen with sbwait when SMP enable
Hello, I have 4 web servers with lighttpd to serve one web site with DNS load sharing. On the 2 SMP-enable web servers, there will be many php-cgi frozen in 'sbwait' state every day. It means the php-cgi stay in 'sbwait' state, and never be back to 'accept' or other state. If I restart them, there will be frozen php-cgi appear some hours later. There is no problem on the
2008 Mar 18
5
xexec and dovecot 1.1
I'll test very interesting plugin xexec. It seems very nice and can be used in many things. It's compiled perfect with dovecot 1.0, but certanly not with dovecot 1.1. It's stopped with next error: In file included from cmd-xexec.c:30: xexec.h:8: error: expected specifier-qualifier-list before 'array_t' cmd-xexec.c: In function 'cmd_xexec': cmd-xexec.c:134: error:
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
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
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
2007 Jul 17
1
Prototype: 2 questions (elements' attributes, dumping methods)
hello again) 1) i just wanted to know is it possible to get element''s attributes in hash or array? for example something like this: <span style="color:red;" id="myEl" onclick="alert(1)"> .. $(''myEl'').attibutes().length // == 3 2) is there any analogues of php functions var_dump() and print_r() for Objects/Hashes and Arrays? thank
2018 Aug 13
1
[lldb-dev] [GSoC] Re-implement lldb-mi on top of the LLDB public API
Can you please list the missing MI commands? This would be very valuable to both future contributors and also to the users of the LLDB MI. Thanks! On Mon, Aug 13, 2018 at 11:28 AM, Александр Поляков <polyakov.alx at gmail.com> wrote: > Thank you, Leonard, > I'm going to keep contributing to LLVM, so I think this is not the end! > > On Mon, Aug 13, 2018 at 8:15 PM Leonard
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
2009 Jun 11
1
fragment caching file_store problems
Hello, I''m having problems on both my production and development servers with fragment caching. Every time I try to cache something using <% cache do %>, I get the following error: Couldn''t create cache directory: views/0.0.0.0:3000/jobs/106/questions/ 174 (wrong number of arguments (2 for 1)) but strangely, all of the directories apart from the last one are created.
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
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
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 => 10_000,
2005 Aug 09
8
call "load balancing"
Hello All, Wondering what sort of real world mileage people are getting out of different internet connecions - i.e. different DSL connection speeds, cable modems, etc... Is it reasonable to hope to carry 10 - 15 concurrent calls on a 768K DSL? I'm not talking about theoretical BW or looking for any difinitive absolute guarantee... With DSL and Cable - there is no guarantee, so I'm
2013 Jul 10
0
ActionView::Template::Error Not a directory vendor/assets/javascripts/ production
Hello, In production environment, I have this error ActionView::Template::Error Not a directory vendor/assets/javascripts/holder.js when in my template I have this line <%= image_tag "holder.js/150x200" %> My production.rb is : Libapp::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded
2018 Aug 13
1
[lldb-dev] [GSoC] Re-implement lldb-mi on top of the LLDB public API
Nice to see great progress in this area! On Sun, Aug 12, 2018 at 2:49 PM, Александр Поляков via lldb-dev < lldb-dev at lists.llvm.org> wrote: > Hi LLVM folks, > > During this summer I was working on re-implementing of lldb-mi to > correctly use LLDB public API. You are welcome to read my final report > where I describe the contribution and challenges I faced with. > Link