similar to: Making ActiveSupport::Cache consistent

Displaying 20 results from an estimated 400 matches similar to: "Making ActiveSupport::Cache consistent"

2006 Jun 05
7
":database_manager =>CGI::Session::MemoryStore" doesn''t work properly...???
Hi, We are try to use the "database_manager =>CGI::Session::MemoryStore" for the session management. our website has a lot of "redirect_to". while the website is running under webrick, everything is fine. But when we run the system under aprache/fcgi. the redirect_to seems doesn''t work anymore with the option "MemoryStore" does anyone have the same
2006 May 09
1
Session mgmt. bug - ActiveRecord & MemoryStore session store
Windows XP Pro Rails 1.1.2 I need some help verifying this behavior that I''m seeing. BUG: Objects in session which are descendants of ActiveRecord::Base lose attributes on subsequent requests when using CGI::Session::MemoryStore. TO REPRODUCE: 0) Set up MemoryStore as the session database manager in the appropriate environment.rb file in config 1) Create a model object X that
2006 Apr 20
12
memcache, sessions, fragments, oh my!
Hi all - I am trying to get rails to use memcache for sessions and fragment caching. I''d also like to use the same connection for general caching of this and that. I''m following the instructions here: http://wiki.rubyonrails.com/rails/pages/HowtoChangeSessionStore and hitting a brick wall. I''m using the new memcache-client since from what I''ve read
2006 Feb 16
2
Making the browser cache an action
Hi! What HTTP headers do I have to sent to make the browser cache the output of an action? I tried: request.delete(''Cache-control'') but no luck. It''s an action that sends an image to the browser, hence I need that. Thanks, Rob
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
2008 Nov 19
3
Rails.cache and problem with model id?
I have the following: MODEL: def self.get_tag_cloud Rails.cache.fetch(''fetish_tag_cloud'', :expires_in => 1.hour) do find(:all, :conditions => [ "approved_for_tag_cloud = true"], :order => "LTRIM(name)") end end CONTROLLER: def index @fetishes = Fetish.get_tag_cloud end VIEW: .... <% @fetishes.each do |fetish| -%>
2007 Jul 17
3
Small problem with src/lib/mountpoint.c [now with patch attached!]
Greetings - [SIGH: I hit the "Send" button instead of "Attach". Here's Take 2...] Whilst playing with getting quotas from NFS-mounted filestores I've just discovered a slight problem with src/lib/mountpoint.c I had things working on a Solaris 10 test machine which had the mailstore mounted 'normally' using an entry in /etc/vfstab. However when I changed
2012 Nov 03
1
Volatile cache keys with Rails and Redis
Does Rails automatically set an EXPIRE attribute on keys when working with Redis, or will an old key sit there forever if it''s never manually cleared out? This is mostly a concern when using ActiveModel''s "cache_key": <%= cache @post do %> The cache-key will be something like views/posts/744-20120613070958 . When the post is updated, and therefore gets a new
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 Jun 24
1
cache issue with attr_accessor field
Hi, I''ve got a model with the following attribute added: attr_accessor :level which does not exist in the database. After putting instances of this model in the cache (using Rails.cache.fetch(''foo'') { Category.all } ), when I retrieve it back from the cache, then trying to access .level gives: undefined method `level'' for #<Category:0x34d50a0>
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?
2004 Mar 03
1
Windows access to data created by Linux application
I am using Samba on a remote Linux system to offer Windows clients access to data being collected by a real-time system. The real-time data collection systems are built on the RH 8 Linux distribution. I also have one that was built using the RH Fedora Core 1 distribution. The data collection software runs as root (yes I do know its not the best way but for a number of reasons it is most convenient
2013 Oct 11
1
"dos filetime resolution" "dos filetimes" respected in samba4
Hello, i had to upgrade a server from 3.6 to 4.0.10. Now i have a problem had already i solved again. The problem is that a machines program is old and require dos filetime resolution = yes but i does not work with the new 4.0.10 [produktion] path=/home/filestore/produktion browseable = yes writable = yes # create mask = 0777 # directory mask = 0777 #
2007 Mar 02
2
Newbie questions: Load-balanced Dovecot with NFS storage
Hi, I experimented with Dovecot a while back and our site is now taking the plunge to switch to it from the UW IMAP server when we rejig the topology of our mail store and IMAP servers. Currently we have a farm of 5 IMAP servers running the UW server. Each has locally attached disk used to store people's mailboxes. Each user is allocated to one of these five servers and can only
2010 Feb 17
3
GlusterFs - Any new progress reports?
GlusterFs always strikes me as being "the solution" (one day...). It's had a lot of growing pains, but there have been a few on the list had success using it already. Given some time has gone by since I last asked - has anyone got any more recent experience with it and how has it worked out with particular emphasis on Dovecot maildir storage? How has version 3 worked out for
2018 Jun 19
6
Ubuntu 18:04 not getting 'home' directory from DC
Hello, I've been trying to get Ubuntu 18.04 to work with Samba AD, seems I am almost there but am unable to get home directories to mount properly.  The domain join went without a problem but because the default cifs ver changed in Ubuntu to get other Samba shares on a samba file server to mount I had to add to it's smb.conf: client min protocol = SMB2 client min protocol = SMB3 So
2005 Dec 25
1
How to use mem_cache_store?
Hi, I''m trying to use mem_cache_store for sessions. I have installed the server and the gem and have added the following to my config/environment.rb: >>>>>>>>>>>>>>>>>>>>>>>>> memcache_options = { :c_threshold => 10_000, :compression => true, :debug => false, :namespace =>
2010 Nov 30
2
db migration fails
I''m deploying new rails applications. Everything works well except when it comes to the db migration: * executing "cd /var/rails/benefits_test/releases/20101129190121 && /opt/ruby-enterprise-1.8.7-2010.02/bin/rake RAILS_ENV=production db:util:migrate" servers: ["ps-test-app1"] [ps-test-app1] executing command ** [out :: ps-test-app1] (in
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
2007 Aug 02
4
Poor Performance WhenNumber of Files > 1M
Hi all, I plan on having about 100M files totaling about 8.5TiBytes. To see how ext3 would perform with large numbers of files I've written a test program which creates a configurable number of files into a configurable number of directories, reads from those files, lists them and then deletes them. Even up to 1M files ext3 seems to perform well and scale linearly; the time to execute