Skip to content

Bulk Publish/Unpublish: Cache not busted #69

Open
@jpizzle34

Description

@jpizzle34

The cache doesn't seem to be busted when performing a bulk publish/unpublish operation via the strapi admin collection 'list view'. Cache is busted correctly when updating entries individually in the 'detail' view, including when Publishing/unpublishing. Anyone else experiencing this?

My ./src/config/plugins.ts config:

module.exports = {
  "drag-drop-content-types": {...},
  seo: {...},
  ckeditor: {...},
  graphql: {
    enabled: true,
    playgroundAlways: true,
  },
  "rest-cache": {
    enabled: true,
    config: {
      provider: {
        name: "memory",
        options: {
          max: 32767,
          maxAge: 3600,
        },
      },
      strategy: {
        debug: true,
        enableEtag: true,
        enableXCacheHeaders: true,
        enableAdminCTBMiddleware: true,
        clearRelatedCache: true,
        contentTypes: [
          // list of Content-Types UID to cache
          "api::post.post",
        ],
      },
    },
  },
};

"@strapi/strapi": "4.13.2",
"pg": "8.11.3",
"strapi-plugin-rest-cache": "^4.2.8"

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