Skip to content

no _dump_data is defined for class Proc #7375

Closed
@International

Description

@International

I have the following in development.rb:

config.cache_store = :null_store

and the following in a User class:

def cached_profile
  Rails.cache.fetch("user_#{self.id}_profile") { self.profile }
end

Whenever the code reaches this point, I get the following error:

no _dump_data is defined for class Proc

The error goes away if I'm starting a memcached server and I change the cache_store. Why is this appearing on a dev environment? Shouldn't a cache miss be performed all the time if we specify that we're using a null_store?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions