Skip to content

refactor: improve UX on cache:clear, cache:info, and debugbar:clear commands#10184

Open
paulbalandan wants to merge 1 commit intocodeigniter4:4.8from
paulbalandan:ux-modern-commands
Open

refactor: improve UX on cache:clear, cache:info, and debugbar:clear commands#10184
paulbalandan wants to merge 1 commit intocodeigniter4:4.8from
paulbalandan:ux-modern-commands

Conversation

@paulbalandan
Copy link
Copy Markdown
Member

Description

Aligns the success/error messages of three migrated commands with the existing key:rotate / logs:clear UX so the user sees what was acted on (or rejected) rather than a generic line.

  • debugbar:clear — names the path:
    • Cleared debugbar JSON files in "ROOTPATH/writable/debugbar".
    • Error deleting the debugbar JSON files in "ROOTPATH/writable/debugbar".
  • cache:clear — names the driver:
    • Cache cleared using the "file" driver.
    • Error occurred while clearing the cache using the "file" driver.
  • cache:info — names the configured handler so the user sees what's wrong without re-checking config:
    • This command only supports the file cache handler. The configured handler is "redis".

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conform to PSR-12 coding style

@github-actions github-actions Bot added the 4.8 PRs that target the `4.8` branch. label May 10, 2026
@paulbalandan paulbalandan added the refactor Pull requests that refactor code label May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.8 PRs that target the `4.8` branch. refactor Pull requests that refactor code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants