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

Open
@Moodyqiqi

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?

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