Displaying 2 results from an estimated 2 matches for "use_local_cache".
2006 Nov 16
1
Strange indexing issues with CachedModel, STI, and AAF
...ss SecondRecord < Record
end
class ApplicationController < ActionController::Base
after_filter { CachedModel.cache_reset }
end
Here''s my CachedModel setup:
- config/environment.rb:
# Include your application configuration below
require ''cached_model''
CachedModel.use_local_cache = true
- config/environments/development.rb (last line)
CACHE = MemCache.new ''localhost:11211'', :namespace => ''ohio_development''
- config/environments/production.rb (last line)
CACHE = MemCache.new ''localhost:11211'', :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