Skip to content

Purge method not showing log on debug #95

Open
@ednilsonamaral

Description

@ednilsonamaral

The PURGE method works normally, but the PURGE log is not saved correctly.

Sometimes the PURGE is logged, but most of the time it is not. Do you know if it is something related to the plugin or a specific configuration?

The MISS, HIT and HITPASS operations are logged correctly.

  • Strapi V4.17.1
  • strapi-plugin-redis V1.1.0
  • strapi-plugin-rest-cache V4.2.9
  • strapi-provider-rest-cache-redis V4.2.9

Config:

redis: {
    enabled: true,
    config: {
      connections: {
        default: {
          connection: cacheObjConnection,
          settings: {
            debug: true,
          },
        },
      },
    },
  },
  'rest-cache': {
    enabled: true,
    config: {
      provider: {
        name: 'redis',
        getTimeout: 4000,
        options: {
          connection: 'default',
        },
      },
      strategy: {
        debug: true,
        enableETag: true,
        enableXCacheHeaders: true,
        enableAdminCTBMiddleware: true,
        resetOnStartup: false,
        clearRelatedCache: true,
        keysPrefix: 'rest-cache',
        maxAge: 259200000, // 3 days
        contentTypes: [ ... ],
      },
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    version: Strapi 4Issues related to the versions supported by Strapi 4

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions