Skip to content

Bug: Strapi 5 fails with plugin rest cache and custom fields in schema #119

@PidginEnemy

Description

@PidginEnemy

Hello, i found a bug in new version of this plugin, to demonstate this i created basic example on clear new strapi with plugin-rest-cache and one custom field in schema.
New config:

strapi: 5.29.0
@strapi-community/plugin-redis: 2.0.0
@strapi-community/plugin-rest-cache: 5.0.1
@strapi-community/provider-rest-cache-redis: 5.0.0 

When i started strapi project in development mode, after few seconds strapi fails with error: Error: Could not find Custom Field: ..... If i delete custom field from schema everything is okay. On old strapi 4 and old version of this plugin no errors occured with the same case.
Old config:

strapi: 4.25.23
strapi-plugin-redis: 1.1.0
strapi-plugin-rest-cache: 4.2.9
strapi-provider-rest-cache-redis: 4.2.9

Please, see my exaple: https://github.com/PidginEnemy/strapi5-rest-cache-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions