Background of the issue:
I am trying to update affected posts for changes in translatable fields using WPML. This task is extremely slow and often does not complete. We have about 100,000 posts, making this process unfeasible. As a workaround, I am using a WP CLI task that can be triggered through a cron job. Here is the code I am using:
<code>
<?php
use WPMLBackgroundTaskAbstractTaskEndpoint;
use WPMLCollectSupportCollection;
use WPMLCoreBackgroundTaskRepositoryBackgroundTaskRepository;
use function WPMLContainermake;
Symptoms:
The task of updating affected posts for changes in translatable fields is extremely slow and often does not complete. It is not feasible with the current setup as it 'never' finishes.
Questions:
Why is the task of updating affected posts for changes in translatable fields so slow?
How can I ensure the task completes successfully given the large number of posts?
El tema '[Cerrado] Slow and unreliable «Updating affected posts for changes in translatable fields»' está cerrado a nuevas respuestas.