Description
When ApiAbstractWikiRunFragment is called with $async=false and the fragment is not cached, it runs the fragment twice:
- AWFragmentStore::get will asynchronously re-render the fragment (via job) if there's a miss
- But because $async=false, the api will synchronously render it, too.
This causes two calls for every missed fragment which, because one goes through jobs, and the other is a synchronous call, might even be hitting the orchestrator at the exact same time.
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist