Support for term/blog/post/user/etc cache flushes

Abierto
#108 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
wordpress
Área
cli

Línea de trabajo

Start by reviewing the cache command's existing CLI entry points and the WordPress functions named in the issue, including clean_term_cache() and clean_comment_cache(). Determine which term, blog, post, user, and related cache flushes should be exposed without raw PHP, then define the command behavior and coverage needed for each supported cache type.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

command:cache-flush

Feature Request

Describe your use case and the problem you are facing

Flushing the entire cache can be expensive, and sometimes you can flush just a group but that doesn't cover everything.

On the other hand there are functions that clear term caches that also touch some options, these aren't represented in CLI without forcing you to open a shell and execute the PHP call directly. Not all hosts allow this.

Describe the solution you'd like

A way to do something like https://developer.wordpress.org/reference/functions/clean_term_cache/ or https://developer.wordpress.org/reference/functions/clean_comment_cache/ etc without writing raw PHP code

Lenguaje dominante
Gherkin
Estrellas
16
Forks
25
Merge medio
7 min
PR fusionados (30 d)
2

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Issues similares

Más issues de CLI

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.