Opened 3 hours ago
Last modified 3 hours ago
#37317 new Cleanup/optimization
Remove undocumented createcachetable <table_name…> support — at Initial Version
| Reported by: | Mike Edmunds | Owned by: | |
|---|---|---|---|
| Component: | Core (Management commands) | Version: | 6.1 |
| Severity: | Normal | Keywords: | cache |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The createcachetable management command used to accept one or more table_name command-line arguments. That behavior was removed from the documentation in 1.7 when the command was changed to iterate over all CACHES, but the implementation is still in place with a "Legacy behavior" comment.
Retaining the undocumented legacy behavior adds maintenance burden (e.g., in implementing features like #36830) and creates potential confusion for users who might try to run createcachetable with a CACHES alias rather than a table name.
Suggest removing support for args in createcachetable, with deprecation notices (in case there are still some scripts out there relying on the legacy behavior).