Displaying 20 results from an estimated 700 matches similar to: "Memcache and Rails - Storing String as values."
2010 Dec 31
1
Parsing params (one of the params value has ampersand)
Hello,
I am trying to parse a URL of this format
http://example.com/links?deal_id=161&url=http://another_example.com/index.php?route=product/product&product_id=275
I need to get 2 params
deal_id and url
However, in the above example, if I do params[:url], then I get
"http://another_example.com/index.php?route=product/product"
product_id=275 is dropped on the floor as its
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
2010 Nov 29
3
session active_record_store
Hi,
There doesn''t seem to be any previous posts about this problem, I must
be
setting things up wrongly at very basics...
Firstly, the problem... I can''t get session[] to persist with
active_record_store. I enabled (config.action_controller.session_store =
:active_record_store) in environment.rb and created the sessions table
at my MySQL database. When I do a session[:blah] =
2010 Mar 31
6
any body can help me ?? why is this happen??
Hii All
I use ruby 1.8.7
I run irb and type:
a = (0.29 * 100).to_i
the result is 28
why??????
could u explain to me.. Please????
THank you
--
Senior Rails Developer
Anton Effendi - Wu You Duan
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2006 Aug 19
3
memcache-client working for anyone?
I''m at the bloody forehead stage, so I figure it''s time to ask. After
installing the robot coop''s memcache-client which everyone apparently
recommends, it refuses to work because the rails cache.rb is invoking
the read() method on the cache, which it _does not have_. Their library
has get() and put() but no read() and write() as rails expects. What
gives? Is
2010 Sep 28
3
kgio library / RubyGem
Hello all,
I''ve released kgio, a kinder, gentler I/O library for Ruby. Some of its
features are useful for Unicorn, and all of it is useful for Rainbows!
I intend to make kgio a requirement for both Unicorn and
Rainbows!/Zbatery. I''m comfortable with the code, but extra testers and
extra eyes to review it would be helpful (it''s nearly all C).
There were several
2010 Sep 17
0
Weird caching error
Using memcached/dalli on rails 2.3.5
I am trying to render to partials from the cache..and I see the
following messages in the production log.
[DEBUG 17-09-2010 10:03:06] Cache read: category_nav
[DEBUG 17-09-2010 10:03:06] 127.0.0.1:11211 running memcached v1.4.2
[DEBUG 17-09-2010 10:03:06] Cache hit: category_nav ({})
[DEBUG 17-09-2010 10:03:06] Rendered shared/_cat_nav_list (4.0ms)
[DEBUG
2006 Oct 11
0
storing typo sessions in memcache
I was trying to use memcache for session storage in Typo. And i got
following error, when user logs into the system.
Session ID:
Cookie set: is_admin=yes; path=/
Redirected to http://foobar.com:8002/admin/content
Completed in 0.02042 (48 reqs/sec) | DB: 0.00236 (11%) | 302 Found
[http://foobar.com/accounts/login]
undefined class/module User
2006 Jan 30
0
cached_model-1.0.1 ActiveRecords + memcache
The new version of cached_model features bug fixes and tests!
Bugs fixed:
Updating a model no longer stores associations into the cache. This
could cause strange, hard-to-debug bugs when an invalid set of
assocations was retrieved along with a cached model.
Reloading a model refreshes the cache.
When CachedModel::find can''t understand query params and a single
result is
2006 Feb 12
3
memcache-client/cached_model help
Hi -
Just downloaded and installed the memcache-client and cached_model
gems and am trying to test it out on a development setup. I added
this to my environment/development.rb
CACHE = MemCache.new :c_threshold => 10_000,
:compression => true,
:debug => true,
:namespace => ''eztrip'',
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
2007 Apr 24
1
read.table
sorry,
I don't undersatnd what happens
Annee_O;Id_Essai;Id_Rep;Id_Geno;Id_Cult;Lib_Geno;St_Cult;Id_Par;X_Par;Y_Par;Id_Cara;Surf_O;Val_O;Ori_O;Stade_O;Date_O;Id_Bloc;Id_TrT1
2004;1006003;1;55094;1012988;XF 338/1;;1;1;1;137;;9.4;P;;09/09/2004;1;0
2004;1006003;1;55094;1012988;XF 338/1;;1;1;1;193;;189;P;;01/01/2004;1;0
2004;1006003;1;55094;1012988;XF 338/1;;1;1;1;103;14.95;85;P;;09/09/2004;1;0
2010 Nov 20
6
unicorn 3.0.0 - disable rewindable input!
Changes:
Rewindable "rack.input" may be disabled via the
"rewindable_input false" directive in the configuration file.
This will violate Rack::Lint for Rack 1.x applications, but can
reduce I/O for applications that do not need a rewindable
input.
This release updates us to the Kgio 2.x series which should play
more nicely with other libraries and applications. There are
2013 Jan 20
6
preload_app = true causing - ActiveModel::MissingAttributeError: missing attribute: some_attr
Greetings,
I''m getting this - ActiveModel::MissingAttributeError: missing
attribute: some_attr - on a random basis under a unicorn server,
running rails 3.2 and ruby 1.9.3
As the case of the last poster in the following thread -
https://github.com/rails/rails/issues/1906 - I too am able to resolve
this issue by settingpreload_app to false.
However, this is not the behaviour I want to
2006 Jan 17
10
ActiveRecord + memcache = cached_model
Courtesy of The Robot Co-op.
$ yes | sudo gem install cached_model
Or, you can download cached_model and memcache-client (our zippy-fast
memcache library, required) from:
http://rubyforge.org/frs/?group_id=1266
I don''t have the README posted for making cached_model work online
yet, so here it is:
= CachedModel
Rubyforge Project:
http://rubyforge.org/projects/rctools/
== About
2013 Jan 03
6
How to avoid simple race conditions with Session?
Here is the situation:
- the client makes a request
- it is followed by AJAX polling
The server needs to keep track of some stuff during this process.
I have been using the Session and it "mostly" works… until the user
decides to open another tab in her browser and she makes a new,
parallel request. In this case, the data from the two requests is
merged, which leads to bugs.
This got
2006 Jul 21
2
mongrel, memcache and sessions
Hi,
I''m using mongrel-0.3.13.3 with memcache-client-1.0.3 for storing sessions.
It was working fine with actionpack-1.12.0, but when I upgraded to
actionpack-1.12.3, I started getting a "can''t convert String into Hash"
error from memcache.rb from memcache-client.
I was able to fix it by changing the way the MemCache object was created in
2013 Feb 22
3
puppet could'nt find hiera even when hiera gem is installed
Hiera was properly working in my environment. But puppet was looking at old
version even when I have the latest hiera gem installed. So I could''nt
use json backend. But puppet is not looking at my latest hiera gem. Not
sure when went wrong here.
Scenario:
I have installed hiera couple of months back. So the gem was installed
under
/opt/puppet/lib/gems/1.8/gems/hiera-0.3.0
2005 Aug 26
0
php-memcache module and Centos 3
Hi all,
I need to compile the php-memcache PECL module but it needs a php
4.3.3 version.
RHEL 3/Centos 3 provides only a php 4.3.2 but the symbol '
php_stream_pclose' is unknown. The compilation fail with :
ext/memcache/memcache.o(.text+0x7ab):/home/alain/rpm/BUILD/php-4.3.2/ext/memcache/memcache.c:386:
undefined reference to `php_stream_pclose'
Then I wonder if a guru
2007 Jan 02
1
Recommendation: Stalled Mongrel? Memcache Hates Spaces
Hi Everyone,
There''s quite a few of you who have contacted me about Mongrel suddenly stopping. After a lot of investigation, I found that the common thread between all of you is memcache and Eric Hodel''s memcache-client. People who were running this combination would have intermittent pauses and investigating the stalled mongrels showed that memcache-client was waiting for