Skip to content

cache_nils is true by default #1006

@jshoung

Description

@jshoung

@petergoldstein I'm not sure what I'm missing but the default behavior for caching nils we're experiencing in our Rails application is true even though the documentation says otherwise:
CleanShot 2024-07-02 at 14 16 22@2x

When I look at the code, it seems like the default is true as well:

CACHE_NILS = { cache_nils: true }.freeze

req_options = req_options.nil? ? CACHE_NILS : req_options.merge(CACHE_NILS) if cache_nils

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions