Delete page_uris option before updating it to avoid possibly expensive array comparison. #3614

git-svn-id: http://svn.automattic.com/wordpress/trunk@4773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-01-19 20:36:35 +00:00
parent 15354bef0b
commit 425d2f70b1
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}
}
}