Skip to content

cache! force option ignored? #424

Open
@bobdutch

Description

@bobdutch

In versions 2.5.0 and older you could do

json.cache! "key_name", expires_in: 10.minutes, force: force? do
where force? is a method that returns a boolean. If force was true then rails would generate and write the cache. This is broken when I upgrade to 2.6 and greater.

I tried using cache_if! as a workaround but it doesn't expire the cache. Is this a bug or an intentional change?

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