Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purge method not showing log on debug #95

Open
ednilsonamaral opened this issue Sep 11, 2024 · 0 comments
Open

Purge method not showing log on debug #95

ednilsonamaral opened this issue Sep 11, 2024 · 0 comments
Labels
version: Strapi 4 Issues related to the versions supported by Strapi 4

Comments

@ednilsonamaral
Copy link

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: [ ... ],
      },
    },
@derrickmehaffy derrickmehaffy added the version: Strapi 4 Issues related to the versions supported by Strapi 4 label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version: Strapi 4 Issues related to the versions supported by Strapi 4
Projects
None yet
Development

No branches or pull requests

2 participants