Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • It looks like the OR clause is causing the query to timeout. I was able to generate all the audio files by commenting out the voice, sample rate and location

    Lines 461-486:

    $args     = array(
    				'posts_per_page' => $batch_size,
    				'post_type'      => $post_types_supported,
    				'meta_query'     => array(
    					// 'relation' => 'OR',
    					array(
    						'key'     => 'amazon_polly_audio_link_location',
    						'compare' => 'NOT EXISTS',
    					),
    					// array(
    					// 	'key'     => 'amazon_polly_voice_id',
    					// 	'value'   => $amazon_polly_voice_id,
    					// 	'compare' => '!=',
    					// ),
    					// array(
    					// 	'key'     => 'amazon_polly_sample_rate',
    					// 	'value'   => $amazon_polly_sample_rate,
    					// 	'compare' => '!=',
    					// ),
    					// array(
    					// 	'key'     => 'amazon_polly_audio_location',
    					// 	'value'   => $amazon_polly_audio_location,
    					// 	'compare' => '!=',
    					// ),
    				),
    			);

    Obviously, this isn’t ideal b/c we do want to check if there’s a change in voice, sample rate or location…

    Commenting to upvote. We’re also seeing 502 Gateway errors on WPEngine during Bulk Update Ajax operations. We have about 2000 posts on each of our sites.

Viewing 2 replies - 1 through 2 (of 2 total)