2011-09-10 91 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應用程序緩存的片段。