You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sorry to bother you with another thing, but this is just the stuff coming up while working on our project.
I've been trying to cache certain objects retrieved with contentful.rb in order to make certain requests not hit the API all the time. Makes page-loads faster.
Therefore I wanted to put a Contentful::Category < Contentful::Entry-object into the Rails-Cache. In this process the objects gets Marshal.dumped.
Doing that reveals that somewhere inside the object there must be a Proc assigned, because:
Marshal.dump client.entries({"content_type" => "<some entry-id>"}).first
TypeError: no _dump_data is defined for class Proc
from (pry):4:in `dump'
I can't figure out where, cause I already tried writing my own marshal_dump / marshal_load-methods.
@dlitvakb Thanks for working on this so fast.
We just started a new sprint yesterday and left this out intentionally. But I'll figure this in and give you feedback!
Hey guys,
I'm sorry to bother you with another thing, but this is just the stuff coming up while working on our project.
I've been trying to cache certain objects retrieved with
contentful.rb
in order to make certain requests not hit the API all the time. Makes page-loads faster.Therefore I wanted to put a
Contentful::Category < Contentful::Entry
-object into the Rails-Cache. In this process the objects getsMarshal.dump
ed.Doing that reveals that somewhere inside the object there must be a
Proc
assigned, because:I can't figure out where, cause I already tried writing my own
marshal_dump
/marshal_load
-methods.During testing I noticed that everything that https://github.com/errorstudio/contentful_model hands out, is cachable without problems.
Any hints?
The text was updated successfully, but these errors were encountered: