ok, its a bit more complicated than I expected:
From the heroku console I did the following:
> pages = Rails.cache.fetch('refinery_pages_menus_menu_en')
> pages.count
=> 11
> p = pages.last
> Marshal.dump(p)
TypeError: can't dump File
>
p.id
11
> p2 = Page.find 11
> p2 == p
=> true
> Marshal.dump(p2)
=> "\004\bo:\tPage\r:\016@readonlyF:\017@destroyedF:
\020@attributes{\025\"\030skip_to_first_child\"\006f\"\rposition
\"\0065\"\017created_at\"\0372011-03-30
20:40:14.450897\"\ndepth0\"\ndraft\"\006f\"\021show_in_menu\"\006t
\"\017updated_at\"\0372011-05-04 18:24:09.750244\"\blft\"\a23\"\aid
\"\a11\"\026custom_title_type\"\tnone\"\016deletable\"\006f
\"\017menu_match\"\035^/(inquiries|contact).*$
\"\tpath0\"\016parent_id0\"\brgt\"\a28\"\rlink_url\"\r/contact:
\030@changed_attributes{\000:\020@new_recordF:
\030@previously_changed{\000:\026@attributes_cache{\a
\"\017created_atU: ActiveSupport::TimeWithZone[\bu:\tTime\r??\e?Q??
\"\bUTC@*\"\017updated_atU;\r[\bu;\016\r\222??r\233`@+@/:
\034@marked_for_destructionF"
>
> Marshal.dump(p)
=> TypeError: can't dump File
> p.reload
> Marshal.dump(p) # now it works
=> "\004\bo:\tPage\025:\016@readonlyF:
\v@parts0:\016@children0:\017@destroyedF: (output cropped)
- Francois