Displaying 20 results from an estimated 10000 matches similar to: "Rails 3 upgrade - Custom 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
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
2011 Nov 05
3
How to get Rails 3.1's Cache store (FileStore) to work with Rack::Sendfile
Hey - I need your input regarding a problem I''ve come across. I''ll first
explain what the problem is, and what I think the solution is. If I
misunderstood how things work, please let me know.
# The problem
I''m using Dragonfly (on-the-fly file processing) to serve images. Dragonfly
uses Rack::Cache to cache the processed images so subsequent requests are
served by
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 =
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
2005 Feb 22
2
Custom Menu Not Working
Greetings *`s,
I am having what appears to be a small problem, but the frustration is
erally getting to me, what am I doing wrong here ?
I used AMP to set up a custom menu, so if caller presses 1 it goes to
ext200, if caller presses 2 it goes to ext201 etc etc...
Now I have created a third option that when the caller presses 3 it must
play a sound and hang up.
No rocket science yet.
When
2006 Jul 21
4
Using a controller to initiate a plugin?
Folks I am new so I apologize if I come off as a totaly tool. I am
finding Rails to be an amazing framework to use and having fun with it.
I have run into a frustrating snag however with PLUGINS.
I have a plugin installed in: /myapp/vendor/plugins/
When I run: ruby script/server in /myapp/ my WEBrick starts normally and
I can access IP:3000. I get the default rails index page.
How do I
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
2016 Aug 10
0
Maybe OT - Centos 5 SATA JMicron JMB361 SATA
Hi All,
I know Centos 5 is almost EOL and all this is old but....
I'm helping a colleague who has moved a Centos 5 install on an IDE disk
to system with a Foxconn M'board. His idea is to use the SATA interface
that's on the Foxconn.
The thing boots OK and then gets into a loop trying to start the
interfaces to the SATA disks. Oceans of stuff like this in /var/log/messages
Aug 7
2010 Apr 22
7
Making ActiveSupport::Cache consistent
Lighthouse ticket: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4452
I have recently been working on some gems that utilize
ActiveSupport::Cache and ran into some issues with the different
implementations handling the same functionality differently. One of
the issues was that I couldn''t rely on expiring entries with
the :expires_in option. MemCacheStore takes this
2010 Apr 19
1
Samba Secondary Groups
This has been bugging me for years but never got around to spending a lot of time on it until I now want/need to use it for work stuff.
Problem is simple I get access denied when trying to create a file in a directory that is not owned by me or my primary group that doesn't have world writable permissions. Ive also had similar issues with NFS mounts where I can't move/create/delete files
2009 Nov 28
1
'Are you sure?' custom dialog not exiting cleanly
The following program does not exit cleanly after pressing ''Yes'' when asked
''Are you sure''?
How do I free up the resources after exiting? You can use wxsugar (xrcise)
to try out this mini program
if you wish to create sample1.rb . Thank you.
-Philip
=========== asample1.rb ====================================================
require ''wx''
2007 Jul 31
0
Patch: Allow overriding of handler dispatch in Mongrel::HttpServer
Hi Zed (and list),
I first of all wanted to thank you for all the hard work you''ve done
to make writing
HTTP services in Ruby easier and more reliable. A friend of mine and
I are developing
a network filestore service (similar to S3) based on Mongrel, and we
got a fairly
useful set of functionality done and working in a matter of a few
weeks thanks
largely to your work. Mongrel
2005 Jan 28
1
"Phanton" domain controller problem...
Hi,
Recently I reinstalled the OS on my Samba PDC, letting Linux FC3 installer
do it's thing then overwriting the smb.conf with my old one.
Now I find that although it tries but can't become Domain master browser
again, although it is happy to become a local master, a login server and to
serve files. The reason given in the log files is that there is another PDC
on the submet at
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
2007 Aug 01
2
Mount options and NFS: just checking...
Greetings -
I'm now in the last couple of weeks before going live with Dovecot
(v1.0.3) on our revamped IMAP service. I'd like to double-check
about the best mount options to use; could someone advise, please?
I have three separate directory trees for the message store, the
control files and the index files. These are arranged as follows:
Message Store
Mounted over NFS from
2011 Oct 26
1
Re: ceph on btrfs [was Re: ceph on non-btrfs file systems]
2011/10/26 Sage Weil <sage@newdream.net>:
> On Wed, 26 Oct 2011, Christian Brunner wrote:
>> >> > Christian, have you tweaked those settings in your ceph.conf? It would be
>> >> > something like ''journal dio = false''. If not, can you verify that
>> >> > directio shows true when the journal is initialized from your osd log?
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 Jan 27
1
javascript and caching
Hi guys,
I''ll start to develop a new app that uses some heavy js librarys
(prototype, scriptaculous, tinymce and so on).
Someone told me to make all the app using ajax, so all the js files
will be loaded only once.
My question is, I really must do everything on ajax?
Lets say if I call myapp.com/projects and projects use all those js
files, then I click on a "show" link and