Queries that send the same request can share parsed results
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 54/100
Línea de trabajo
Read the options and tradeoffs in issue #874, then trace how the parsed-results cache keys requests and how cache_get and cache_save are used. Check how the fix preserves duplicate suppression for failed and PUT, PATCH, or DELETE requests, along with subclass overrides and existing cache keys. Done means queries with the same request but different response processing no longer share parsed results.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
The in-memory cache for parsed results is keyed only by the request details. If two queries send the same request but process the response differently in one PHP request, the second gets the first one's result.
The same can happen within one query when an input changes the result but not the request.
Impact
Narrow. It mainly affects custom queries that share a URL, or the same data source set up twice with different mappings. The built-in Google Sheets item and list queries aren't affected, because the item query sends an extra header.
We haven't had a report of it.
Notes for a fix
- The current behaviour also stops identical failed and
PUT,PATCHorDELETErequests from being sent twice. A fix needs to keep that, or accept the change. - Changing
cache_getorcache_savewould break subclasses that override them. - A subclass may also rely on the current cache keys.
The options considered and their tradeoffs are in #874.
- Lenguaje dominante
- PHP
- Estrellas
- 86
- Forks
- 14
- Merge medio
- 1 d 5 h
- PR fusionados (30 d)
- 23
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Automattic/remote-data-blocks
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
Automattic/remote-data-blocks#883 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Automattic/remote-data-blocks#879 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Automattic/remote-data-blocks#821 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Automattic/remote-data-blocks#640 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
Automattic/remote-data-blocks#312 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Automattic/remote-data-blocks
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
Automattic/static-site-importer#3462 ·
Los mantenedores suelen responder en 1 día
-
Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.phpAbiertoenhancement feature: settings good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
nextcloud/integration_openai#480 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
roundcube/roundcubemail#10468 ·
Los mantenedores suelen responder en 1 día