2011-09-10 45 views
0

我在rails 2.3.14,memcache-client 1.8.5中使用视图片段缓存。不幸的是它给了错误:rails 2.3.14片段缓存,memcache-client 1.8.5

ArgumentError: undefined class/module ActiveSupport::Cache::Entry 

与回溯:

[GEM_ROOT]/gems/memcache-client-1.8.5/lib/memcache.rb:250:in `load' 
[GEM_ROOT]/gems/memcache-client-1.8.5/lib/memcache.rb:250:in `get_without_newrelic_trace' 
[GEM_ROOT]/gems/memcache-client-1.8.5/lib/memcache.rb:886:in `with_server' 
[GEM_ROOT]/gems/memcache-client-1.8.5/lib/memcache.rb:246:in `get_without_newrelic_trace' (eval):7:in `get' 
[GEM_ROOT]/gems/newrelic_rpm-3.1.1/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped' (eval):4:in `get' 
[GEM_ROOT]/gems/activesupport-2.3.14/lib/active_support/cache/mem_cache_store.rb:63:in `read' 
[GEM_ROOT]/gems/activesupport-2.3.14/lib/active_support/cache/strategy/local_cache.rb:39:in `read' 
[GEM_ROOT]/gems/actionpack-2.3.14/lib/action_controller/caching/fragments.rb:70:in `read_fragment' 
[GEM_ROOT]/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:30:in `benchmark' 
[GEM_ROOT]/gems/actionpack-2.3.14/lib/action_controller/caching/fragments.rb:69:in `read_fragment' 
[GEM_ROOT]/gems/actionpack-2.3.14/lib/action_controller/caching/fragments.rb:39:in `fragment_for' 
[GEM_ROOT]/gems/actionpack-2.3.14/lib/action_view/helpers/cache_helper.rb:35:in `cache' app/views/layouts/_mini_calendar.erb:37:in `_run_erb_app47views47layouts47_mini_calendar46erb_locals_mini_calendar_object' 
[GEM_ROOT]/gems/actionpack-2.3.14/lib/action_view/renderable.rb:34:in `send' 
....................... 

为什么试图加载的ActiveSupport ::缓存::项,这并不是出现在轨2.3?

谢谢!

回答

0

答案很简单。在一台服务器上,我们有rails 2.3和rails 3应用程序,这些应用程序正在向同一个名称相同的memcache服务器缓存某些内容。所以rails 2.3应用程序试图抓取由rails 3应用程序缓存的片段。