Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

how to set related models #71

Description

@Moodyqiqi

strapi: 3.6.6
strapi-middleware-cache: 2.1.0

i have city and building models, i want to clear building cache when i update or delete city model.
in building/models/building/settings.json, i have set {attributes: {city: {model: "city"}}}
in middleware.js, i have set {clearRelatedCache: true}, it's not clear building cache when i edit or delete city model.

document said (this clears the whole cache for the related models), is there any way to set related models?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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