similar to: memcache, sessions, fragments, oh my!

Displaying 20 results from an estimated 2000 matches similar to: "memcache, sessions, fragments, oh my!"

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
2005 Dec 16
11
mysql mem-tables vs. memcached
Could someone please elaborate on the technical differences and practical impact of whether choosing memory-based tables in MySQL or using memcached. I got this far on my own: It seems that MySQL uses the NDB engine for transaction-safe memory access in a cluster. the memory storage engine seems to be faster but not synchronizable by any means in a cluster. memcached seems to be ultimately fast
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
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'',
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 =>
2006 Mar 01
4
cached_model and memcache-client slowness
Hi there, I''ve got a Rails app that''s a little unusual in that it maintains a database representation of a filesystem (for an image gallery). Thus, if the filesystem is essentially ''out of date'' then the controller''s list action will end up invoking a model update (which involves a filesystem scan). I''m using sqlite3 as this app will be
2005 Dec 13
3
Forcing the session-id
We''re going to have problems keeping cookies across domains. We want people to shop in one domain (e.g. "booksareus.com") and then checkout on the same server securely under a different domain (e.g. "greatbooks.com"). When we make the jump to the secure domain (the checkout link) can we submit the user''s session ID along with it and have it
2006 Apr 21
4
Scaling Rails with Apache 2.2, mod_proxy_balancer and Mongrel
Cheers, I''ve just published a blog post about scaling Rails with Apache 2.2, mod_proxy_balancer and Mongrel. This way you do not need another proxy server or load balancer for Mongrel. Just use Apache 2.2 and mod_proxy balancer. http://blog.innerewut.de/articles/2006/04/21/scaling-rails-with-apache-2-2-mod_proxy_balancer-and-mongrel Jonathan -- Jonathan Weiss
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
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 Apr 12
3
Apache 1.3 + remote FastCGI balancing
Cheers, As I have a lot of stability problems with Lighttpd + FastCGI-Cluster I wanted to test Apache 1.3 as most of the "big" sites like 43people or BaseCamp run on it. Every example I find only talks about lokal FastCGI processes and not about remote ones and explains how the requests are balanced. Are there any good examples out there and can Apache1.3/mod_fastcgi load balance
2007 Aug 20
5
byte-range requests
Hello everyone, I did some initial tests and it seems that mongrel does not support byte-range requests. Is this correct? The reason I ask is that the iPhone requires byte-range requests to work in order to stream audio or video from a web server. Thanks in advance, alan
2006 May 29
4
Time-based cache fragment expiration
Hello, I''m trying to figure out how I could implement fragment caching that expires every x amount of time. I thought of writing a runner script that would expire the cache and set it as a cron job, but that doesn''t really work because runner scripts act on models and not controllers. Does anybody have any ideas? Regards, -carl
2006 Jan 22
7
: Indexed Search Engine 0.1.3 Released
Hello all, IndexedSearch Engine for Rails Engines version 0.1.3 has been released. IndexedSearch is a simple, pluggable engine for rails applications which can be used to enable full text indexed searches within an application. Searchable data is parsed, stemmed using the Porter stemmer, and added to a fully indexed table. This allows you to index things like "he runs fast" which will
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
2006 May 28
10
Drag''n''Drop out of overflow:auto containers
Cheers, I have some elements inside a div with overflow:auto. When I trie to drag them outside of the div, the div starts to scroll. Is there a way to stop this behaviour for drag and drop? I thought of maybe using callback to disable the overflow and restoring it againg after the drop. Did someone implemented something like this? Thanks, Jonathan -- Jonathan Weiss
2006 Jan 13
4
Flash not cleared with ActiveRecord session store
Cheers, I''ve stumbled over a bug with 1.0 and ActiveRecord store for session while migrating from pstore sessions. I created the table with `rake create_sessions_table` and set `config.action_controller.session_store = :active_record_store` in environment.rb. Everything runs fine except that the flash messages will not be cleared. I get the same message everytime on everypage I
2006 Jan 03
3
file_column howto (beginner)
I''m trying to use file_column as a Rails plugin. Of course I read the doc (from Sebastian, this maillist) and little bit of source (as good as I, newbie, could understand it).. But I''m not able to implement it in my app.. I''m a totally newbie with less software development experience. I get the file_column_field in my view with simply invoking the helper... (:multipart
2007 Sep 28
3
Why PeriodicalUpdater doesn't work on Internet Explorer?
I have the following code: <script type="text/javascript"> Event.observe(window, ''load'', function() { var updater = new Ajax.PeriodicalUpdater(''chatbox'', ''chat.php'', {method: ''get'', asynchronous: true, frequency: 0.55, decay: 2, onSuccess: function(){$(''chatbox'').scrollTop=$
2006 Mar 27
3
act_as_paranoid and model references
I''m using act_as_paranoid plugin for most of my models. One of the reasons was that I didn''t want to break references between objects after I "deleted" an object. One of the cases was to know which user modified something even after I deleted the user. My problem now is that I cannot access the user after it was deleted if I use the :has_and_belongs_to :user