From 8ab8398153af7a8a2775a95953682773c8a11f3d Mon Sep 17 00:00:00 2001 From: William Tam Date: Tue, 5 Dec 2023 09:40:53 -0500 Subject: [PATCH] no_found_rows --- classes/NPRAPIWordpress.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/NPRAPIWordpress.php b/classes/NPRAPIWordpress.php index 8c2c6ec..6c60287 100644 --- a/classes/NPRAPIWordpress.php +++ b/classes/NPRAPIWordpress.php @@ -116,7 +116,8 @@ function update_posts_from_stories( $publish = TRUE, $qnum = false ) { 'meta_key' => NPR_STORY_ID_META_KEY, 'meta_value' => $story->id, 'post_type' => $pull_post_type, - 'post_status' => 'any' + 'post_status' => 'any', + 'no_found_rows' => true ]); // set the mod_date and pub_date to now so that for a new story we will fail the test below and do the update