Skip to content

setMaxAge('permanent') and equivalent does not create cache in red #120

@mathieuCatapulpe

Description

@mathieuCatapulpe

Hello, I've been using your module and it's been a live saver so far but I noticed an issue with setMaxAge()

Setting no TTL or using 'permanent' or -1 does not create an entry in redis

useRouteCache((helper) => {
  helper.setMaxAge('permanent').setCacheable() // or setMaxAge(-1) -> does not work
})
useRouteCache((helper) => {
  helper.setMaxAge('midnight').setCacheable() // works
})

I also tried to add a tag but it didn't change anything

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