From a41ca943411c1a33c4005aa11321df272b6d4008 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 19 Jan 2007 20:36:35 +0000 Subject: [PATCH] Delete page_uris option before updating it to avoid possibly expensive array comparison. #3614 git-svn-id: https://develop.svn.wordpress.org/trunk@4773 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 62f20e5bf1..0e6049684a 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1181,10 +1181,13 @@ function generate_page_uri_index() { $page_uris[$uri] = $id; } + delete_option('page_uris'); update_option('page_uris', $page_uris); - if ( $page_attachment_uris ) + if ( $page_attachment_uris ) { + delete_option('page_attachment_uris'); update_option('page_attachment_uris', $page_attachment_uris); + } } }