permanent-cache-bin-flush incompatible with webprofiler module

Created on 12 April 2023, over 1 year ago
Updated 20 May 2023, over 1 year ago

Problem/Motivation

`drush pcbf` doesn't work when webprofiler module is enabled.

Steps to reproduce

1. pcb version 3.1.0, webprofiler version 9.0.2, Drupal version 9.5.7
2. run drush pcbf, error message should be shown `... bin is not using pcb`
3. uninstall webprofiler module, then the error message [2.] should disappear

Proposed resolution

Replace pcb.commands service argument to '@cache.backend.permanent_database'

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Postponed: needs info

Version

3.1

Component

Code

Created by

🇱🇹Lithuania arpas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @arpas
  • Status changed to Postponed: needs info over 1 year ago
  • 🇮🇳India nikunjkotecha India, Gujarat, Rajkot

    Changing to support request as it is having conflict with another module which decorates Drupal CORE service, we can not handle all scenarios in contributed modules.

    On quick look the suggested change could have a side effect, all the cache bins would be loaded using the Permanent Cache Backend and would have the function defined, this is wrong. Also this doesn't look like a production scenario, webprofiler is a developer module and supposed to be used only in development machines or non-prod environments.

    Having said above I would really love to understand the use case further before closing the issue as "Works as designed". Possible to share more details around what exactly are you trying to do that causes problem for you?

Production build 0.71.5 2024